embedding wmp on firefox

S

shotokan99

hi,

just a simple question. i wanted to embed wmp on my page -- my browser
is firefox, and this is my code:

function ini(){
var x=document.getElementById('main');
var k=document.createElement('object');
k.setAttribute('id','mplayer');
k.setAttribute('classid','CLSID:6BF52A52-394A-11d3-
B153-00C04F79FAA6');
k.setAttribute('type','application/x-oleobject');
k.setAttribute('codebase','http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112');
k.innerHTML='<param name="autoStart" value="False"> '+
'<param name="Showcontrols" value="False">'+
'<param name="uiMode" value="none">'+
'<embed type="application/x-mplayer2" '+
'src="../Madagascar.avi" name="mplayer"'+
'width="400" height="286"'+
'></embed>';

x.appendChild(k);
}
//---------------------------------------------------------------------------//
my issue..how to remove the control (buttons for play,stop,etc)? i
want to hide this from the user.

then i want to control it programatically. but whenever is issue these
command they're not working.

var x=document.getElementById('mplayer');
x.controls.stop();
or
x.stop();

what is the work around for my problem? tnx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top