Re: WMP/Netscape catch playState
- From: Omar <spambuster@xxxxxxxxxxxxxxxx>
- Date: Sun, 21 Oct 2007 03:10:15 -0400
On Thu, 18 Oct 2007 07:24:40 -0400, Omar <spambuster@xxxxxxxxxxxxxxxx>
wrote:
I like to tinker with embedded WMP and javascript to control the
player. I do it entirely for entertainment purposes because I get a
kick out of making something work. Until recently I was content
getting my scripts to work in IE only, and have had pretty good
success. (My opinion I suppose because I'm the only one that accesses
the page.)
I've found methods to control the player via javascript for all the
major modern browsers except Netscape. (Beyond 7.1) I'm not using
buttons, but simply checking the playState of the browser for stop()
condition and when it occurs the page forwards to another song.
Is there a method, using javascript, to catch the playState of WMP in
Netscape 8 & 9. I've researched for a week now, and cannot find
anything that works. Everywhere I look seems to point to scripts that
are years old, and are no longer valid for the newer versions of
Netscape. What intrigues me is it will work in Netscape using the
"Like Internet Explorer" interface, but does not work using "Like
Firefox", even though it _does_ work in Firefox.
Any direction would be appreciated.
Thanks.
Ok. I answered my own question. Just install the Firefox Windows Media
11 plugin from the folks at Port25, then copy npmswmp.dll into the
plugins folder of your preferred browser.The same scripting will work
in Windows applications of K-Meleon, Opera, Safari, Netscape 9 (but
not 8.1), yet oddly, it doesn't work with IE. Go figger huh?
The URL for the plugin is
http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe
By default the plugin is installed to the Mozilla Firefox\plugins
folder. If Firefox is not installed, it will be installed to
PFiles\Plugins on your root drive.
To put the player in a web page for use in all the browsers mentioned
above:
<object type="application/x-ms-wmp" ID="mediaPlayer" width="your
choice" height="your choice" />
<param name="src" value="yourURL.wma" />
<param name="any you like" />
</object>
For Internet Explorer there's enough documentation out there to figure
it out quite easily.
Then the playState of the player can be caught with
document.getElementById("mediaPlayer").controls.playState;
How you script the values of the controls beyond that is your up to
you.
Hope this helps somebody.
.
- References:
- WMP/Netscape catch playState
- From: Omar
- WMP/Netscape catch playState
- Prev by Date: Re: problem with WMP and firefox
- Next by Date: RE: Unable to play wmv files from websites
- Previous by thread: WMP/Netscape catch playState
- Next by thread: streaming through a web server
- Index(es):