Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Multiple captions on web


I am looking for a way to house multiple captions in my jwplayer setup object. Right now the captions area of my setup object looks like:

{
captions: [
{
file: "captions1.srt",
kind: "captions",
label: "English"
},
{
file: "captions2.srt",
kind: "captions",
label: "French"
}
]
}

But with this, I do not see the CC icon in my control bar. Also, calling playerReference.getCaptionsList() returns an array:
[ {id: "off", label: "off"} ]

Any ideas how I can fix this? Thanks

3 Community Answers

Alex

JW Player Support Agent  
1 rated :

Hi, there.

Captions are setup in the embed code using tracks, not “captions”. It should work if you replace captions with tracks, as soon on this support article.

Please let me know if you need any more help or have any other questions.

Thank you!

farhad

User  
0 rated :

Thanks for the quick reply, that solved it! FYI, I was referencing this setup document. It looks like tracks are reserved for playlists.

http://support.jwplayer.com/customer/portal/articles/1413113-configuration-options-reference

Alex

JW Player Support Agent  
0 rated :

Hi, Farhad.

I’m glad to hear you got it sorted out. I do agree that that reference page is a little confusing, but just so you know – if you only have one piece of content in your embed, you can take any of those options, like playlist.tracks or playlist.image and remove the “playlist” part of it.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.