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

Displayed both closed caption - from m3u8 playlist and JW Player playlist


Hi,
we have defined closed captions (WebVTT format) in m3u8 playlist and same is defined in JW Player playlist (tracks). When you start playing video on iOS, there are displayed both closed captions - from m3u8 and from JW Player tracks config. Is there any way how to avoid this and play only track from JW Player? We need closed captions in m3u8 e.g. for iPhone, where are not displayed tracks defined in JW Player config.

5 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Can you simply remove the tracks specified in the setup? The player will always try to play the embedded VTT from the HLS manifest.
-Cooper

dominik.fiser

User  
0 rated :

It's problem to remove tracks from setup, because m3u8 are not supported by all OS and we are playing mp4 by default. So removing tracks from setup will cause, that they will play only on OS with m3u8 support:(
Will be nice to have there config option for setting priority for closed caption source in JW Player or default behaviour - if there are set tracks in setup, tracks from m3u8 are disabled.
If tracks are removed from setup, will be displayed JW Player control button for CC (e.g. on iPad) or not?

Cooper Reid

JW Player Support Agent  
0 rated :

I believe that the CC button will still show if the VTT file is embedded within the HLS manifest. One thing you could do, is conditionally add the tracks parameter to the config object in the case it’s Desktop playback.

var config = {file: ‘video.m3u8’}
if( isDesktop ) {
config.tracks = [{file: ‘captions.vtt’}];
}
jwplayer.setup(config);

Kind Regards,
Cooper Reid
Client Support Engineer, JWPlayer

dominik.fiser

User  
0 rated :

Thanks, it could be a solution, but some JW Player setting for priority of closed captions will be a nice feature.

Cooper Reid

JW Player Support Agent  
0 rated :

Hi Dominik -

One thing you could do is use embedded 608 captions as well as manifest-embedded VTTs. Our player will favor the VTTs over the 608s, so this is a possibility you could look into. This is described here under WebVTT Subtitles: http://www.jwplayer.com/blog/introducing-jw-player-6-11-industry-leading-hls/

-Cooper

This question has received the maximum number of answers.