Keep mobile controls visible and make recorded VOD remux seekable

This commit is contained in:
Technomancer702
2026-10-13 22:00:19 -07:00
parent a922c6dbb5
commit f72675030a
13 changed files with 172 additions and 45 deletions

View File

@ -50,6 +50,7 @@ class CaptionTracks {
this.generation++;
this.hls = null;
this.probe = null;
this.pendingRemoteSelection = null;
this.timeOffset = 0;
this.retireNativeTracks();
this.onChange();
@ -124,9 +125,18 @@ class CaptionTracks {
this.remoteTracks.push(element);
this.video.appendChild(element);
}
const selected = this.remoteTracks[this.pendingRemoteSelection];
this.pendingRemoteSelection = null;
if (selected) selected.track.mode = 'showing';
}
captureRemoteSelection() {
this.pendingRemoteSelection = this.remoteTracks.findIndex(element => element.track.mode === 'showing');
}
bindHls(hls, events) {
const selected = this.remoteTracks.findIndex(element => element.track.mode === 'showing');
if (selected >= 0) this.pendingRemoteSelection = selected;
this.generation++;
this.hls = hls;
this.manifestReady = false;