mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 21:33:52 +02:00
[WIP] Add majority of logic for HLS reading support
This commit is contained in:
@@ -842,6 +842,10 @@ export abstract class MpegTsTrackBacking implements InputTrackBacking {
|
||||
return TIMESCALE;
|
||||
}
|
||||
|
||||
getVariant() {
|
||||
return null;
|
||||
}
|
||||
|
||||
async computeDuration(): Promise<number> {
|
||||
const lastPacket = await this.getPacket(Infinity, { metadataOnly: true });
|
||||
return (lastPacket?.timestamp ?? 0) + (lastPacket?.duration ?? 0);
|
||||
|
||||
Reference in New Issue
Block a user