Set default playlist to transmux instead of bandwidth dependant

This commit is contained in:
Zoe Roux 2024-01-29 03:09:17 +01:00
parent fed94eab1b
commit 68c28ed358

View File

@ -99,7 +99,9 @@ const initHls = async (): Promise<Hls> => {
manifestLoadPolicy: loadPolicy, manifestLoadPolicy: loadPolicy,
steeringManifestLoadPolicy: loadPolicy, steeringManifestLoadPolicy: loadPolicy,
}); });
// hls.currentLevel = hls.startLevel; hls.on(Hls.Events.MANIFEST_PARSED, () => {
if (hls) hls.startLevel = hls.firstLevel;
});
return hls; return hls;
}; };