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

Showing subtitles (closed captions) embedded in MP4 file


Hi,

In jwPlayer 5.9 i was able to show subtitles with ClosedCaptions plugin even when they were embedded in mp4 file.

Currently for jwPlayer 6 seems that I need to have separate .VTT or .SRT file to be able to show captions (http://support.jwplayer.com/customer/portal/articles/1407438-adding-closed-captions).

The question is how do I show subtitles embedded in mp4 file (for jwPlayer 6 Only, jwPlayer 5.9 works fine with embedded mp4 subtitles using captions plugin)?

Thanks!

4 Community Answers

Andrew

Best Answer  JW Player Support Agent  

I have actually gotten this backwards. I do not believe there is a way to get captions on a desktop machine from an HTML5 video. For desktops, you’ll need to set this to Flash. You will be able to get this information in iOS in fullscreen, however. (By clicking the captions button)

View in conversation

Andrew

JW Player Support Agent  
0 rated :

Hi,

Do you have an example here? I believe we may only display captions in HTML5 mode in this scenario. Otherwise, a VTT file should be utilized for other instances.

max.mironov89

User  
1 rated :

Hi Andrew, thanks for response.

Here is link to mp4 video with embedded captions https://www.dropbox.com/s/omddtif6xyeea3q/captions.mp4?dl=0

As for: "I believe we may only display captions in HTML5 mode".
Html5 seems to be the default mode when rendering video.
But I still don't have an idea how to enable captions in this way for jwPlayer6.


Here is the way I initialized jwPlayer 5.9 with captions enabled:

player.setup({
flashplayer: '../player.swf',
file: 'urlToFileWithCaptions',
autostart: 'true',
width: '640px',
height: '360px',
controlbar: 'bottom',
plugins: {
'captions-2': { 'back': 'true', 'state': 'false' }
}
});

For jwPlayer 6 I've used the following:

player.setup({
file: 'urlToFileWithCaptions',
autostart: 'true',
width: '640px',
height: '360px',
controls: 'true',
primary: 'html5'
});

But no captions are shown. Also tried to add tracks.file option that points to the same mp4 file with captions but it didn't work either.

Please let me know if it is possible to configure jwPlayer 6 to show mp4 embedded captions?

Thanks!

Andrew

Best Answer  JW Player Support Agent  
1 rated :

I have actually gotten this backwards. I do not believe there is a way to get captions on a desktop machine from an HTML5 video. For desktops, you’ll need to set this to Flash. You will be able to get this information in iOS in fullscreen, however. (By clicking the captions button)

max.mironov89

User  
0 rated :

Thanks Andrew!
Solution with setting player mode to flash works well with mp4 embedded captions.

This question has received the maximum number of answers.