mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
93781b2a56
(I guess)
27 lines
708 B
C#
27 lines
708 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace BililiveRecorder.Flv.Pipeline.Actions
|
|
{
|
|
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
|
|
};
|
|
}
|
|
}
|