BililiveRecorder/BililiveRecorder.Flv/IFlvProcessingContextWriter.cs
2021-02-23 18:03:37 +08:00

18 lines
475 B
C#

using System;
using System.Threading.Tasks;
using BililiveRecorder.Flv.Amf;
using BililiveRecorder.Flv.Pipeline;
namespace BililiveRecorder.Flv
{
public interface IFlvProcessingContextWriter : IDisposable
{
Action<ScriptTagBody>? BeforeScriptTagWrite { get; set; }
Action<ScriptTagBody>? BeforeScriptTagRewrite { get; set; }
event EventHandler<FileClosedEventArgs> FileClosed;
Task WriteAsync(FlvProcessingContext context);
}
}