Support » Plugin: Switch Video Quality » Subtitles on by default

  • Resolved denkoe


    Hi again.

    Is it possible to start all videos with subtitles switched on whenever there’s a subtitle track assigned?

    Thanks a lot!

Viewing 1 replies (of 1 total)
  • Plugin Author team-ok



    you could do it with a small jQuery snippet.
    If you want to switch on the first subtitle track of a video, use this:

    	$('.mejs-video.svq .mejs-captions-selector-input:not([value="none"])').eq(0).click();

    Or, if you want to switch on a specific language, you could use this (change “en” to a language code of your choice):

    	$('.mejs-video.svq .mejs-captions-selector-input[value$="en"]').click();

    Put the snippet in a custom javascript file that is loaded by your theme or in a script tag in a post/page.

Viewing 1 replies (of 1 total)
  • The topic ‘Subtitles on by default’ is closed to new replies.