
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