Captions & Audio Tracks option | Community
Skip to main content
Dipti_Chauhan
New Participant
June 6, 2025
Solved

Captions & Audio Tracks option

  • June 6, 2025
  • 1 reply
  • 351 views

We are currently using the Captions & Audio Tracks option in Dynamic Media with AEM 6.5.18.we can save captions and see the option to change them in the player, which is great. However, we want to display only a selected caption file that we are passing the DM video URL .&caption=[DM Caption URL],1

Somehow Its not working. Any suggestions what we are missing

Best answer by arunpatidar

Hi @dipti_chauhan 

 

Not sure if this helps or not 

 

  • For a pop-up video viewer experience, click the URL button. In the URL dialog box, select and copy the URL to the Clipboard and then past the URL into a simple text editor. Append the copied URL of the video with the following syntax:

    &caption=<server_path>/is/content/<path_to_caption.vtt_file,1>

    Note the ,1 at the end of the caption path. Immediately following the VTT filename extension in the path, you can optionally enable (turn on) or disable (turn off) the closed caption button on the video player bar by setting to ,1 or ,0, respectively.

  • For an embedded video viewer experience, click Embed Code. In the Embed Code dialog box, select, and copy the embed code to the Clipboard and then paste the code into a simple text editor. Append the copied embed code with the following syntax:

    videoViewer.setParam("caption","<path_to_caption.vtt_file,1>");

    Notice the ,1 at the end of the caption path. Immediately following the VTT filename extension in the path, you can optionally enable (turn on) or disable (turn off) the closed caption button on the video player bar by setting to ,1 or ,0, respectively.

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/dynamicmedia/video#adding-captions-to-video 

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
June 6, 2025

Hi @dipti_chauhan 

 

Not sure if this helps or not 

 

  • For a pop-up video viewer experience, click the URL button. In the URL dialog box, select and copy the URL to the Clipboard and then past the URL into a simple text editor. Append the copied URL of the video with the following syntax:

    &caption=<server_path>/is/content/<path_to_caption.vtt_file,1>

    Note the ,1 at the end of the caption path. Immediately following the VTT filename extension in the path, you can optionally enable (turn on) or disable (turn off) the closed caption button on the video player bar by setting to ,1 or ,0, respectively.

  • For an embedded video viewer experience, click Embed Code. In the Embed Code dialog box, select, and copy the embed code to the Clipboard and then paste the code into a simple text editor. Append the copied embed code with the following syntax:

    videoViewer.setParam("caption","<path_to_caption.vtt_file,1>");

    Notice the ,1 at the end of the caption path. Immediately following the VTT filename extension in the path, you can optionally enable (turn on) or disable (turn off) the closed caption button on the video player bar by setting to ,1 or ,0, respectively.

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/dynamicmedia/video#adding-captions-to-video 

Arun Patidar