Forum Discussion

ReneeSanchez's avatar
ReneeSanchez
Community Member
7 months ago
Solved

Trigger for Subtitle Layers

Hello, I have a video that I need subtitles for in 14 languages. My main screen will contain the video with English captions. I will then create layers for each language - the same video on 14 laye...
  • ThierryEMMANUEL's avatar
    7 months ago

    Hello ReneeSanchez . If I've understood your request correctly, it's quite simple to make a language choice layer appear by pressing the CC button on the Player, since this button toggles the built-in True/False variable “Player.DisplayCaptions”. 
    So use the following trigger // Show language choice layer when the “Player.DisplayCaption” variable is “TRUE” // When your end-user clicks on the CC button, the “Player.DisplayCaptions” variable is set to “TRUE”.  
    So, when your end-user clicks on CC, the layer appears; the user chooses a language: clicking on the language button brings up the layer for the chosen language and makes the language choice layer disappear. 
    I created a small .story file very, very quickly. Please let me know if this answers your request in any way. 

    Translated with DeepL.com (free version)