Start work on HlsOutputFormat

This commit is contained in:
Vanilagy
2026-03-17 15:25:06 +01:00
parent e42fc85f19
commit dd8621b6d5
17 changed files with 619 additions and 72 deletions
+6
View File
@@ -409,6 +409,12 @@ export class HlsSegmentedInput extends SegmentedInput {
} else if (line === '#EXT-X-ENDLIST') {
this.streamHasEnded = true;
break; // No need to keep reading after this
} else if (line.startsWith('#EXT-X-PLAYLIST-TYPE')) {
const type = line.slice(21);
if (type.toLowerCase() === 'vod') {
// A VOD playlist cannot be updated per spec so we can be sure the stream has ended
this.streamHasEnded = true;
}
}
}
}