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

15 lines
422 B
C#

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