2021-02-08 16:51:19 +08:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
|
2021-04-29 23:51:06 +08:00
|
|
|
namespace BililiveRecorder.Flv.Pipeline.Actions
|
2021-02-08 16:51:19 +08:00
|
|
|
{
|
|
|
|
public class PipelineHeaderAction : PipelineAction
|
|
|
|
{
|
|
|
|
public PipelineHeaderAction(IReadOnlyList<Tag> allTags)
|
|
|
|
{
|
|
|
|
this.AllTags = allTags ?? throw new ArgumentNullException(nameof(allTags));
|
|
|
|
}
|
|
|
|
|
|
|
|
public Tag? VideoHeader { get; set; }
|
|
|
|
|
|
|
|
public Tag? AudioHeader { get; set; }
|
|
|
|
|
|
|
|
public IReadOnlyList<Tag> AllTags { get; set; }
|
|
|
|
|
|
|
|
public override PipelineAction Clone() => new PipelineHeaderAction(this.AllTags.ToArray())
|
|
|
|
{
|
|
|
|
VideoHeader = VideoHeader,
|
|
|
|
AudioHeader = AudioHeader
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|