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

VTT Thumbanils


Good afternoon. I have a test player up at http://www.cox7.com/uncategorized/test-online?thumb=1

I am trying to get the thumbnail VTT track working but when debugging I don't see the player ever making the call to the test1.VTT file, and needless to say it does not display the thumbnails.

Am i missing something obvious here?

11 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

What happens here if primary is set to flash?

sean.ogorman

User  
0 rated :

Same thing, Chrome never calls for the VTT file

Ethan Feldman

JW Player Support Agent  
0 rated :

I believe you need to set the tracks inside of a playlist block.

sean.ogorman

User  
0 rated :

Well now I see that the VTT file is being called only in HTML5 mode but it's failing to load due to cross domain. The interesting thing is that the player loads m3u8 files from the same amazon Cloudfront origin and I have a proper cross domain xml file that should allow it.

Take a look...
http://www.cox7.com/uncategorized/test-online?thumb=1

Ethan Feldman

JW Player Support Agent  
0 rated :

You need to enable CORS:

http://support.jwplayer.com/customer/portal/articles/1403679-crossdomain-file-loading

http://enable-cors.org/

sean.ogorman

User  
0 rated :

cors is enabled.

The player lives on the page...
http://www.cox7.com/uncategorized/test-online?thumb=1

The MP4, VTT, and thumbnail data all are served from.....
https://d1n4te1nnj7y6z.cloudfront.net


The cross domain file at....
https://d1n4te1nnj7y6z.cloudfront.net/crossdomain.xml

Allows *.cox7.com

I use this same distribution for all my mp4 files as well as my HLS assets without any cross domain issues.

Ethan Feldman

JW Player Support Agent  
0 rated :

I would try a totally unrestricted corssdomain.xml file, also try to set primary to flash as well to test.

sean.ogorman

User  
0 rated :

Ethan, Thanks for your help. I have tested the player and the VTT file is only called for in HTML5 mode. When the player is in flash mode I can not even get it to call the VTT file.

Also, even with a wide open CrossDomain file I am still not able to load the VTT file ( https://d1n4te1nnj7y6z.cloudfront.net/test1.vtt ) even tho I am able to load a m3u8 ( http://d1n4te1nnj7y6z.cloudfront.net/41781_HLS.m3u8 ) from the same page and origin without any cross domain errors

Ethan Feldman

JW Player Support Agent  
0 rated :

When I go to http://www.cox7.com/uncategorized/test-online?thumb=1 I see the player in html5 mode, but no thumbnails show up in the controlbar from the vtt.

sean.ogorman

User  
0 rated :

What browser are you using, I am still getting the error

"XMLHttpRequest cannot load https://d1n4te1nnj7y6z.cloudfront.net/test1.vtt. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.cox7.com' is therefore not allowed access. "

when testing on Chrome

Ethan Feldman

JW Player Support Agent  
0 rated :

Firefox.

That error indicates CORS not being enabled.

This question has received the maximum number of answers.