Forum Moderators: open

Message Too Old, No Replies

Firefox & Windows Media Player - scripting without ActiveX Plugin?

         

lajolladev

10:57 pm on Feb 10, 2006 (gmt 0)

10+ Year Member



Can anyone provide a code snippet that both (a) embeds Windows Media Player in Firefox 1.x, and (b) listens for WMP events -- without requiring the user to first install a plugin?

There is a lot of conflicting advice out there, and nothing I've found works (except via the plug in route)...

Taffa

10:39 pm on Feb 11, 2006 (gmt 0)

10+ Year Member



It depends on what you try to achieve and what events you are talking about? URL script commands?

without requiring the user to first install a plugin?

Do you mean Firefox ActiveX plugin?

newb

11:15 am on Feb 12, 2006 (gmt 0)

10+ Year Member



<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Mediaplayer" name="Mediaplayer" height="270" width="320">
<param name="URL" value="http://yoursite.com/linkfile.mp3">
<param name="VOLUME" value="100">
<param name="PLAYCOUNT" value="10">
<param name="ENABLECONTEXTMENU" value="0">
<embed name="Mediaplayer" src="http://yoursite.com/linkfile.mp3" showstatusbar="1" playcount="10" enablecontextmenu="0" height="270" width="320">
</object>

lajolladev

5:20 pm on Feb 13, 2006 (gmt 0)

10+ Year Member



Thanks, Taffa. Yes, I mean without the Firefox ActiveX plugin.

Most Firefox users don't have it, and I don't want to require it if avoidable.

I'm working on a player that requires the browser to interact with the Media Player object. Javascript needs to access basic player properties, like playstate.

However, I can't seem to get Firefox/Gecko to expose any of the Media Player's properties to Javascript -- using any of the multitude of (often conflicting) advice available online.

Just looking for a working example of a Media Player object, wrapped properly for Firefox, with a Javascript that gets one property...