Window Media Player stop() in Firefox
-
I want to use embedded Window Media Player functions like stop(), pause() in Firefox. Does anyone have an idea? I checked following two ways. They are working good in IE6 and IE7 but not in Firefox. (1) document.Player.controls.pause(); (2) document.getElementById("Player").controls.pause(); Please tell me a solution in Firefox. Thanks. Abuabakr
-
I want to use embedded Window Media Player functions like stop(), pause() in Firefox. Does anyone have an idea? I checked following two ways. They are working good in IE6 and IE7 but not in Firefox. (1) document.Player.controls.pause(); (2) document.getElementById("Player").controls.pause(); Please tell me a solution in Firefox. Thanks. Abuabakr
Why do you wanna add this from Javascript? If you are embedding Windows Media Player Object in WebPage, all buttons (play,pause,stop and etc) are already included in that object. So, I don't think you need to add this duplicated features from Javascript.. You can check the screenshot here.
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="false" width="320" height="240" loop="false" src="MyVideo.wmv" />
Ref: Embedding Windows Media Player into a web page
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)
-
Why do you wanna add this from Javascript? If you are embedding Windows Media Player Object in WebPage, all buttons (play,pause,stop and etc) are already included in that object. So, I don't think you need to add this duplicated features from Javascript.. You can check the screenshot here.
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="false" width="320" height="240" loop="false" src="MyVideo.wmv" />
Ref: Embedding Windows Media Player into a web page
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)
Thanks for you reply. The thing is I need player in a complete different way. Infact I want to implement a technique which doesn't work with normal player that's y I added a layer on player and then control its functions. I have finished everything and its work great in IE6 and IE7 but not in Firefox. So I just need a button or image where I can call player functions "onClick" event. Thanks.