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

MP4 captions not working in HTML5 player


I implemented the basic setup of JW player, and have found that embedded MP4 captions aren't working in Firefox or Chrome. They do work in IE8. After changing the "primary" parameter to be "flash", the captions work in FF and Chrome. The captions work in the HTML5 player if I supply them as an external file, but extracting the captions from all our videos isn't really an option for us.

I've implemented a crossdomain.xml and the CORS header on my local environment as well, although it still doesn't work when I download a copy of the video to my machine and load it into the HTML5 player.

Any thoughts? Thanks!

4 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Any chance of a link here? Seeing things in action would be helpful for troubleshooting. :)

jrobertson

User  
0 rated :

I literally followed the most basic example on your MP4 embedding page: http://support.jwplayer.com/customer/portal/articles/1406723-mp4-video-embed

The code I am testing is as follows:

<!DOCTYPE html>
<html>
<head>
<title>Video Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="jwplayer/jwplayer.js" ></script>
<script>jwplayer.key = "myKey";</script>
</head>
<body>
<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "my-video.mp4",
image: "my-image.png",
width: 640,
height: 360,
primary: "flash"
});
</script>
</body>
</html>

jrobertson

User  
0 rated :

This is the video I'm using to test, in case it has something to do with the video:

http://www.ice.gov/doclib/video/gallery/michelle-liles.mp4

Andrew

JW Player Support Agent  
0 rated :

Thanks for the file. I’ve sent this over to our developers, but we currently only support embedded captions while Flash is being utilized.

This question has received the maximum number of answers.