using System.Collections.Generic; using BililiveRecorder.Flv.Pipeline.Actions; namespace BililiveRecorder.Flv.Grouping.Rules { public class ScriptGroupingRule : IGroupingRule { public bool CanStartWith(Tag tag) => tag.IsScript(); public bool CanAppendWith(Tag tag, List tags) => false; public PipelineAction CreatePipelineAction(List tags) => new PipelineScriptAction(tags[0]); } }