BililiveRecorder/BililiveRecorder.Flv/Grouping/Rules/HeaderGroupingRule.cs
2021-04-29 23:51:06 +08:00

15 lines
437 B
C#

using System.Collections.Generic;
using BililiveRecorder.Flv.Pipeline.Actions;
namespace BililiveRecorder.Flv.Grouping.Rules
{
public class HeaderGroupingRule : IGroupingRule
{
public bool CanStartWith(Tag tag) => tag.IsHeader();
public bool CanAppendWith(Tag tag, List<Tag> tags) => tag.IsHeader();
public PipelineAction CreatePipelineAction(List<Tag> tags) => new PipelineHeaderAction(tags);
}
}