Re: Windows Media Player - Javascript Control in Browser is unpredicta
- From: "Alessandro Angeli" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Aug 2008 12:47:11 -0400
From: "srsm"
[...]
In summary. I've spent countless hours trying to control
the Player via javascript. I've tried hundreds (no
exaggeration) of combinations of
commands/params/uppercase/lowercase/false(0)/true(1) etc
WMP in a browser - does it work?
This has been discussed over and over. You didn't read the
docs:
http://msdn.microsoft.com/en-us/library/bb262763(VS.85).aspx
http://msdn.microsoft.com/en-us/library/bb614510(VS.85).aspx
And 2 tips missing from the docs:
- info about the media are only available after the media
has been loaded, not right after you ask the player to load
it, so you need to wait for the corresponding event
- calling methods that cause a state change from a state
change event handler is unpredictable and dangerous; if you
need to, call them using a short setTimeout()
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
.
- Follow-Ups:
- References:
- Prev by Date: Windows Media Player - Javascript Control in Browser is unpredicta
- Next by Date: Re: Player Crash on ASF that Requires Rending Plugin if not installed
- Previous by thread: Windows Media Player - Javascript Control in Browser is unpredicta
- Next by thread: Re: Windows Media Player - Javascript Control in Browser is unpred
- Index(es):
Relevant Pages
|