Skip to content

Commit 3a52b30

Browse files
authored
Cue interval tree (Dash-Industry-Forum#4812)
* feat: create IntervalTree for O(log n) lookup of cues within an interval * feat: keep all cues in an IntervalTree and only a small range in the native TextTrack * refactor: rename IntervalTree to CueIntervalTree * refactor: make _onPlaybackSeeked more consistent with _onPlaybackTimeUpdated * refactor: avoid checking same condition multiple times * fix: hopefully fix the TypeError on functional test for forced subtitles on MacOSX Firefox 142 * refactor: delete workaround for a bug from pre-Chromium MS Edge * fix: restore cue extension logic
1 parent 1fc9e5e commit 3a52b30

File tree

7 files changed

+1329
-272
lines changed

7 files changed

+1329
-272
lines changed

src/streaming/controllers/PlaybackController.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,9 @@ function PlaybackController() {
689689
function _onPlaybackSeeked() {
690690
logger.info('Native video element event: seeked');
691691
internalSeek = false;
692-
eventBus.trigger(Events.PLAYBACK_SEEKED);
692+
eventBus.trigger(Events.PLAYBACK_SEEKED, {
693+
streamId: streamInfo.id
694+
});
693695
}
694696

695697
function _onPlaybackTimeUpdated() {

0 commit comments

Comments
 (0)