Increase image subtitle lookahead window
Image subtitle lookahead prefetch now defaults to 15 seconds and is capped at 30 seconds, allowing more upcoming bitmap subtitle frames to be warmed in cache before display. This targets small residual subtitle lag while preserving the bounded prefetch guardrails. Both authenticated playback and share playback were updated to request the same 15-second lookahead so behaviour stays consistent across player surfaces, and the technical reference now documents the new default and cap.
@@ -160,7 +160,7 @@
160
160
## public/shared-video-player.js
161
161
- applyDefaultTextTrackPrefs() - Writes the default Video.js caption override settings (transparent background, uniform edge style) so all streamed players start from the same text-track baseline.
162
162
- bindTrackPrefs(player, prefs, savePrefs) - Restores subtitle/audio track selections by track name and persists later track changes; shared by the authenticated player and the share page so both resolve track matches the same way.
163
- bindImageSubtitleOverlay(player, videojs, prefs, session, opts) - Adds the shared IM button/menu/overlay for bitmap subtitle tracks, restores saved image-subtitle selections, fetches rendered frames through a caller-supplied request builder, prefetches lookahead subtitle frames (default 5 seconds, bounded to 15 seconds max) to reduce event-boundary lag, and disables the track after the first hard failure.
163
- bindImageSubtitleOverlay(player, videojs, prefs, session, opts) - Adds the shared IM button/menu/overlay for bitmap subtitle tracks, restores saved image-subtitle selections, fetches rendered frames through a caller-supplied request builder, prefetches lookahead subtitle frames (default 15 seconds, bounded to 30 seconds max) to reduce event-boundary lag, and disables the track after the first hard failure.
164
164
- configureVideoJsBuffering(videojs, opts) - Applies the long forward-buffer settings used for file playback when VHS exposes those knobs.
165
165
- ensureVideoPlaybackUi(player, durationSeconds) - Forces file streams into VOD UI mode, normalises the reported duration, stops live-tracker state, and hides the live badge when present.
166
166
@@ -160,7 +160,7 @@160
## public/shared-video-player.js
160
## public/shared-video-player.js
161
- applyDefaultTextTrackPrefs() - Writes the default Video.js caption override settings (transparent background, uniform edge style) so all streamed players start from the same text-track baseline.
161
- applyDefaultTextTrackPrefs() - Writes the default Video.js caption override settings (transparent background, uniform edge style) so all streamed players start from the same text-track baseline.
162
- bindTrackPrefs(player, prefs, savePrefs) - Restores subtitle/audio track selections by track name and persists later track changes; shared by the authenticated player and the share page so both resolve track matches the same way.
162
- bindTrackPrefs(player, prefs, savePrefs) - Restores subtitle/audio track selections by track name and persists later track changes; shared by the authenticated player and the share page so both resolve track matches the same way.
163
- bindImageSubtitleOverlay(player, videojs, prefs, session, opts) - Adds the shared IM button/menu/overlay for bitmap subtitle tracks, restores saved image-subtitle selections, fetches rendered frames through a caller-supplied request builder, prefetches lookahead subtitle frames (default 5 seconds, bounded to 15 seconds max) to reduce event-boundary lag, and disables the track after the first hard failure.
163
- bindImageSubtitleOverlay(player, videojs, prefs, session, opts) - Adds the shared IM button/menu/overlay for bitmap subtitle tracks, restores saved image-subtitle selections, fetches rendered frames through a caller-supplied request builder, prefetches lookahead subtitle frames (default 15 seconds, bounded to 30 seconds max) to reduce event-boundary lag, and disables the track after the first hard failure.
164
- configureVideoJsBuffering(videojs, opts) - Applies the long forward-buffer settings used for file playback when VHS exposes those knobs.
164
- configureVideoJsBuffering(videojs, opts) - Applies the long forward-buffer settings used for file playback when VHS exposes those knobs.
165
- ensureVideoPlaybackUi(player, durationSeconds) - Forces file streams into VOD UI mode, normalises the reported duration, stops live-tracker state, and hides the live badge when present.
165
- ensureVideoPlaybackUi(player, durationSeconds) - Forces file streams into VOD UI mode, normalises the reported duration, stops live-tracker state, and hides the live badge when present.
166
166
@@ -108,7 +108,7 @@ const FOLDER_GROUP_OPTIONS = [
108
108
];
109
109
const VIDEO_FORWARD_BUFFER_SECONDS = 60 * 60;
110
110
const VIDEO_FORWARD_BUFFER_OVERRIDE_ENABLED = false;
111
const IMAGE_SUBTITLE_LOOKAHEAD_SECONDS = 5;
111
const IMAGE_SUBTITLE_LOOKAHEAD_SECONDS = 15;
112
112
let videoJsLoaderPromise = null;
113
113
let threePreviewModulesPromise = null;
114
114
@@ -108,7 +108,7 @@ const FOLDER_GROUP_OPTIONS = [108
];108
];109
const VIDEO_FORWARD_BUFFER_SECONDS = 60 * 60;109
const VIDEO_FORWARD_BUFFER_SECONDS = 60 * 60;110
const VIDEO_FORWARD_BUFFER_OVERRIDE_ENABLED = false;110
const VIDEO_FORWARD_BUFFER_OVERRIDE_ENABLED = false;111
const IMAGE_SUBTITLE_LOOKAHEAD_SECONDS = 5;111
const IMAGE_SUBTITLE_LOOKAHEAD_SECONDS = 15;112
let videoJsLoaderPromise = null;112
let videoJsLoaderPromise = null;113
let threePreviewModulesPromise = null;113
let threePreviewModulesPromise = null;114
114