I embedded the Windows Media player on an intranet application web
site. As part of the application there is a play function that uses
Javascript to set the URL and then invoke control.play. If the file
exists and the user can access it then all is good. However, if the
file doens't exit or the user can't access the file then the play
doens't work.
My question is how can I detect programatically that the play request
won't work?
I tried using the MediaPlayer.error value but that doesn't appear to
get set for this case (not clear when error would be set.) I also
tried looking at the MediaPlayer.playState and that always changes to
Transitioning (state #9) when I invoke the MediaPlayer.controls.play()
method and only later does it transition to either Playing (state #3)
or back to Ready (state #10) if the player can't find or access the
file.
Any ideas? Am I missing some property or method that would allow me
to check this?
Thanks!