2021-02-08 16:51:19 +08:00
|
|
|
using System;
|
|
|
|
using System.Threading.Tasks;
|
2021-02-23 18:03:37 +08:00
|
|
|
using BililiveRecorder.Flv.Amf;
|
2021-02-08 16:51:19 +08:00
|
|
|
using BililiveRecorder.Flv.Pipeline;
|
|
|
|
|
|
|
|
namespace BililiveRecorder.Flv
|
|
|
|
{
|
|
|
|
public interface IFlvProcessingContextWriter : IDisposable
|
|
|
|
{
|
2021-02-23 18:03:37 +08:00
|
|
|
Action<ScriptTagBody>? BeforeScriptTagWrite { get; set; }
|
|
|
|
Action<ScriptTagBody>? BeforeScriptTagRewrite { get; set; }
|
|
|
|
|
|
|
|
event EventHandler<FileClosedEventArgs> FileClosed;
|
|
|
|
|
2021-12-19 00:56:41 +08:00
|
|
|
Task<int> WriteAsync(FlvProcessingContext context);
|
2021-02-08 16:51:19 +08:00
|
|
|
}
|
|
|
|
}
|