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 HeaderGroupingRule : IGroupingRule
|
|
|
|
{
|
2021-04-29 23:51:06 +08:00
|
|
|
public bool CanStartWith(Tag tag) => tag.IsHeader();
|
2021-02-08 16:51:19 +08:00
|
|
|
|
2021-04-29 23:51:06 +08:00
|
|
|
public bool CanAppendWith(Tag tag, List<Tag> tags) => tag.IsHeader();
|
2021-02-08 16:51:19 +08:00
|
|
|
|
2021-04-29 23:51:06 +08:00
|
|
|
public PipelineAction CreatePipelineAction(List<Tag> tags) => new PipelineHeaderAction(tags);
|
2021-02-08 16:51:19 +08:00
|
|
|
}
|
|
|
|
}
|