From 1d5e537323a83bec359ece6f870869ff8f1bf43b Mon Sep 17 00:00:00 2001 From: germanocaumo Date: Tue, 17 Nov 2026 14:00:29 -0300 Subject: [PATCH] fix(captions): show the captions and the CC button in Safari video.js only adds the tracks passed in its options when it renders the captions itself. Safari defaults to native text tracks, so it had no caption tracks and the CC button stayed hidden. Let video.js render the captions in every browser. --- src/components/webcams/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/webcams/index.js b/src/components/webcams/index.js index bd0aacd9..f7100298 100644 --- a/src/components/webcams/index.js +++ b/src/components/webcams/index.js @@ -77,6 +77,12 @@ const buildOptions = (sources, tracks) => { }, controls: true, fill: true, + html5: { + // video.js only adds the `tracks` below when it renders the captions + // itself, and it uses the native text tracks in Safari, which left + // Safari with no captions and no CC button + nativeTextTracks: false, + }, inactivityTimeout: 0, playbackRates: config.rates, sources: sources.current,