Enable 480p in ABR - Rok synced all 3 variants (sequence base 32)
This commit is contained in:
parent
53a1d83d43
commit
f15e5a1d83
@ -674,15 +674,8 @@
|
||||
hls.loadSource(HLS_URL);
|
||||
hls.attachMedia(video);
|
||||
hls.on(Hls.Events.MANIFEST_PARSED, () => {
|
||||
try {
|
||||
if (hls.levels && hls.levels.length) {
|
||||
hls.levels.forEach((lvl) => {
|
||||
if (lvl.height && lvl.height <= 480) {
|
||||
lvl.enabled = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (e) {}
|
||||
// ABR enabled across ALL variants (1080p / 720p / 480p)
|
||||
// Rok synced all 3 variants — same MEDIA-SEQUENCE base, encoder restarted.
|
||||
hideMsg();
|
||||
video.play().catch(() => setTimeout(() => video.play().catch(() => {}), 200));
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user