BililiveRecorder/BililiveRecorder.Flv/Grouping/Rules/HeaderGroupingRule.cs

15 lines
437 B
C#
Raw Normal View History

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