Browse Source

feat(web): disable closed captions when transcription is disabled (#2092)

Aaron van Meerten 15 hours ago
parent
commit
ed30d0d49c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      web/rootfs/defaults/settings-config.js

+ 1 - 0
web/rootfs/defaults/settings-config.js

@@ -358,6 +358,7 @@ config.enableTcc = false;
 // Transcriptions (subtitles and buttons can be configured in interface_config)
 // Transcriptions (subtitles and buttons can be configured in interface_config)
 config.transcription = {
 config.transcription = {
     enabled: {{ $ENABLE_TRANSCRIPTIONS }},
     enabled: {{ $ENABLE_TRANSCRIPTIONS }},
+    disableClosedCaptions: {{ not $ENABLE_TRANSCRIPTIONS }},
     translationLanguages: {{ $TRANSLATION_LANGUAGES }},
     translationLanguages: {{ $TRANSLATION_LANGUAGES }},
     translationLanguagesHead: {{ $TRANSLATION_LANGUAGES_HEAD }},
     translationLanguagesHead: {{ $TRANSLATION_LANGUAGES_HEAD }},
     useAppLanguage: {{ $USE_APP_LANGUAGE }},
     useAppLanguage: {{ $USE_APP_LANGUAGE }},