Enabled CEA-708 and WebVTT caption parsing

This commit is contained in:
Trevor Mears
2025-12-28 01:11:14 -08:00
parent c25da2e011
commit ec05112f8f
2 changed files with 14 additions and 1 deletions
+9
View File
@@ -452,6 +452,15 @@ h4 {
/* Maintain aspect ratio without overflow */ /* Maintain aspect ratio without overflow */
} }
/* Closed Caption styling */
video::cue {
background-color: rgba(0, 0, 0, 0.8);
color: #fff;
font-size: 1.2em;
font-family: inherit;
padding: 0.2em 0.5em;
}
.player-overlay { .player-overlay {
position: absolute; position: absolute;
inset: 0; inset: 0;
+5 -1
View File
@@ -72,7 +72,11 @@ class VideoPlayer {
// Faster recovery from errors // Faster recovery from errors
levelLoadingMaxRetry: 4, levelLoadingMaxRetry: 4,
manifestLoadingMaxRetry: 4, manifestLoadingMaxRetry: 4,
fragLoadingMaxRetry: 6 fragLoadingMaxRetry: 6,
// Caption/Subtitle settings
enableCEA708Captions: true, // Enable CEA-708 closed captions
enableWebVTT: true, // Enable WebVTT subtitles
renderTextTracksNatively: true // Use native browser rendering for text tracks
}; };
} }