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

CC button check


if we assume that captions exist for all video files - we could show the caption button without doing a server call. Then, if the user presses the caption button to turn captions on, pause the video and display a message (like "loading captions"). If captions exist, display them. If captions do not exist, show a message ("sorry, captions are not available for this video).

2 Community Answers

Sudhir Ranjan Rout

User  
0 rated :

jwplayer("myElement").setup({
playlist: [{
file: "jwplayer-7.2.2/MUNA.mp4",
image:"images.jpg",
titile: "My file",
displaytitle: true,


tracks: [{
file: "jwplayer-7.2.2/MUNA.vtt",
label: "English",
kind: "captions",
"default": false

}
]

}],
captions: {
color: '#FF33F9',
fontSize: 24,
backgroundOpacity: 20
}

});

jwplayer().on('volume', function(e) {
alert("Volume is changed to: "+ e.volume);
});

George

JW Player Support Agent  
0 rated :

Hi,

You seem to have another post about this. I’ll be closing this ticket now.

This question has received the maximum number of answers.