mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
Start work on HlsOutputFormat
This commit is contained in:
@@ -71,7 +71,7 @@ type QueuedPacket = {
|
||||
|
||||
export class MpegTsMuxer extends Muxer {
|
||||
private format: MpegTsOutputFormat;
|
||||
private writer: Writer;
|
||||
private writer!: Writer;
|
||||
|
||||
private trackDatas: MpegTsTrackData[] = [];
|
||||
private tablesWritten = false;
|
||||
@@ -90,12 +90,15 @@ export class MpegTsMuxer extends Muxer {
|
||||
super(output);
|
||||
|
||||
this.format = format;
|
||||
this.writer = output._writer;
|
||||
this.writer.ensureMonotonicity = true;
|
||||
}
|
||||
|
||||
async start() {
|
||||
// Nothing to do here
|
||||
const release = await this.mutex.acquire();
|
||||
|
||||
this.writer = await this.output._getRootWriter();
|
||||
this.writer.ensureMonotonicity = true;
|
||||
|
||||
release();
|
||||
}
|
||||
|
||||
async getMimeType() {
|
||||
|
||||
Reference in New Issue
Block a user