On Tuesday, October 25, 2011 3:43:40 PM UTC-7, Mark Panaghiston wrote:
With the flash solution, when a URL error occurs, the JavaScript actually resets the flash for another try.
Just to be 100%, is there a way to make the player show up which solution is using?
It's error handler does a setMedia on the current media in jPlayer's status so that in the normal way you can press play again and it will retry the media URL. This made the Flash mimic the HTML5 media solution, which allowed you to spam play and it would keep trying.
Ok, that could be a reason for one problem: I'm receiving error messages but I'm pretty sure that just a few of them involve the
contemporary play of two different songs. So maybe sometime I receive an error because the player tries twice before succeeding.
A few time I also received this error
"Attempt to issue media playback commands, while no media url is
set.play Use setMedia() to set the media"
is it in some way related?
You are changing the media yourself in the error event handler... I do not see why this would cause a problem with the Flash, as your setMedia from the playlist would come after the URL error event media reset on the Flash. My mind boggles as to how the Flash can play 2 media at a time and orphan one of them. Setting the media destroys any old media in the Flash.
Yes, it happend at least to two users, and always with chrome (but could have been happened with other browsers too, I don't know).
Do you think that something like this cannot happen:
1 - an error occured
2 - I skip to the next song and a new media is set and the play start
3 - the player tried again for the first song, succeeds and set the media and starts playing
?
It does sound like something is up though. So maybe there is a bug in the system for a niche like this where the url fails and the suddenly works again.
My only suggestion right now is that you add a clearMedia command into your error handler to ensure the media is cleared before you change the playlist. I actually think that it might make will not make any difference, but try it and see.
ok; what does this mean exactly?
"Using this clearMedia by itself on the iOS iPhone or iPod Touch will corrupt the built in video player if it is open at the time the command executes."
The other thing to consider is that errorAlerts might screw things up. The alerts can mess with some operations. Early in 2.0.0 patches, there was a problem with the alerts causing the Flash to not work in the page. Wondering if it is related.
I'm not using errorAlerts, I'm sending errors via email.
Cheers,
Eugenio