Trigger display of transcripts

Aug 24, 2023

As is possible with closed captions, is it possible to set a transcript to display automatically. I can't find a built in variable to control this, so I assume it isn't possible (yet!)

Best wishes

Matt

5 Replies
Jürgen Schoenemeyer

you can simulate a user click on the transcript button with javascript

there is a limitation - the button has to be there 🠊 activate "Video Controls: Dark or Light"

(for "Show none" the overlay for transcript is not created at all)

show transcript:

document.querySelector(".video-transcript:not(.enabled)").click();

hide transcript:

document.querySelector(".video-transcript.enabled").click();

toggle transcript:

document.querySelector(".video-transcript").click();

example:

https://360.articulate.com/review/content/0efb7159-8f4e-4057-ac7b-20f4cadf2554/review

 

Matt Smith
Jürgen Schoenemeyer

you can simulate a user click on the transcript button with javascript

there is a limitation - the button has to be there 🠊 activate "Video Controls: Dark or Light"

(for "Show none" the overlay for transcript is not created at all)

show transcript:

document.querySelector(".video-transcript:not(.enabled)").click();

hide transcript:

document.querySelector(".video-transcript.enabled").click();

toggle transcript:

document.querySelector(".video-transcript").click();

example:

https://360.articulate.com/review/content/0efb7159-8f4e-4057-ac7b-20f4cadf2554/review

 

Fantastic!!! Thanks for this. Will give it a go!!

Matt