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

Error not thrown more than once


Hello,
I am building a plugin that tries to play many files and, if it fails, it goes to the next one.
For instance, I will have many links for each item of the playlist, and I will try to play them, but without adding new elements to the playlist.
For instance :
-Video 1 :
-link1
-link2 ...
if the link 1 fails, I will try to play link 2.

So, I have a set of failing links (404 not found) and, at the end, one working link. I have checked that the working link plays itself in jwplayer, apart from all the system, and it does.

When I press play, an error is thrown for the first video (File cannot be found error), all good so far.
Object {message: "Error loading media: File not found", type: "jwplayerError"}

So, I try to go to the next video, if it is another failing link, it will throw no errors at all. I get a 404 but the "error" event is not thrown. Therefore I cannot capture it, not in onError nor in onSetupError and I cannot keep switching links.

Also, if the next video is the working one; it will not work anymore; the error is net::ERR_UNKNOWN_URL_SCHEME .
No error is thrown either in that case.

I don't know if there is something about the lifecycle of the player that I am missing or something.
The working data is under rtmp if that is an issue.

Best regards,
Luismi



2 Community Answers

JW Player

User  
0 rated :

I take it back, sometimes it won't throw the first 404 error

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link to where you are trying to run this?

This question has received the maximum number of answers.