2021-02-08 16:51:19 +08:00
|
|
|
using System.Collections.Generic;
|
2021-04-29 23:51:06 +08:00
|
|
|
using BililiveRecorder.Flv.Pipeline.Actions;
|
2021-02-08 16:51:19 +08:00
|
|
|
|
|
|
|
namespace BililiveRecorder.Flv.Grouping.Rules
|
|
|
|
{
|
|
|
|
public class ScriptGroupingRule : IGroupingRule
|
|
|
|
{
|
2021-04-29 23:51:06 +08:00
|
|
|
public bool CanStartWith(Tag tag) => tag.IsScript();
|
2021-02-08 16:51:19 +08:00
|
|
|
|
2021-04-29 23:51:06 +08:00
|
|
|
public bool CanAppendWith(Tag tag, List<Tag> tags) => false;
|
2021-02-08 16:51:19 +08:00
|
|
|
|
2021-04-29 23:51:06 +08:00
|
|
|
public PipelineAction CreatePipelineAction(List<Tag> tags) => new PipelineScriptAction(tags[0]);
|
2021-02-08 16:51:19 +08:00
|
|
|
}
|
|
|
|
}
|