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

Caption not loading

i am working with jwplayer and vtt file caption format which uised m3u8 mp4 player to load the player.

however in network tab i am able to see the caption file and also getting 200 ok response but when i click on cc button then i am getting this error.

XMLHttpRequest cannot load the file <file name> origin is not allowed by Access-Control-Allow-Origin

CAPTIONS(Error loading file)

i am also allow this in crossdomain.xml but still getting this error

1 Community Answers


JW Player Support Agent  
0 rated :

Are you getting a 200 response on your VTT file? If yes and your captions are not appearing, then perhaps there is a syntax error in the VTT file.

If you are getting the CORS Access-Control-Allow-Origin error, then you need to make sure the VTT file has the correct CORS headers as well. Please see for more details.

The crossdomain.xml file will most likely not help since, since our player makes these requests using HTTP, not Flash.

This question has received the maximum number of answers.