Hi, thanks for that. Will try it and see if it helps although it tends to go on about IE issues rather than Firefox and I feel its FF that is the issue at this point in time rather than my poor coding
That page is called "Using the Windows Media Player Control with Firefox". Can't get much more Firefox oriented than that There are at least 20 pages in the wmp area that have information on how to do things with wmp in Firefox.
As to your hide the controls issue, I had a quick go with the application/x-mplayer2 embed and could not remove the controls with either param entries or script in Firefox 2 or Safari doing what MS recommends for Netscape4+ (using the mplayer2 plugin).
There's your (nearly completely) script controllable 320x240 wmp with autostart, 2 replays and no controls for Firefox, Safari and IE5+ in 8 lines of code. I'd bet there are other more efficient ways to do it. Hmmmm... I'm not actually certain that it'll only replay twice coz I didn't leave the .wmv runnin for that long.
Anyway, I'm sure you can adapt that for your AC_AX_RunContent script.
ntoo
Last edited by ntoo; 04-13-2008 at 05:34 AM..
Reason: typos
That page is called "Using the Windows Media Player Control with Firefox". Can't get much more Firefox oriented than that There are at least 20 pages in the wmp area that have information on how to do things with wmp in Firefox.
As to your hide the controls issue, I had a quick go with the application/x-mplayer2 embed and could not remove the controls with either param entries or script in Firefox 2 or Safari doing what MS recommends for Netscape4+ (using the mplayer2 plugin).
There's your (nearly completely) script controllable 320x240 wmp with autostart, 2 replays and no controls for Firefox, Safari and IE5+ in 8 lines of code. I'd bet there are other more efficient ways to do it. Hmmmm... I'm not actually certain that it'll only replay twice coz I didn't leave the .wmv runnin for that long.
Anyway, I'm sure you can adapt that for your AC_AX_RunContent script.
ntoo
Hi, thanks for that. I've been playing all morning with other codes and still can't get anything to work. Will give the above ago and report back.
Hi, I got a bit lost with all the coding so copied some of the coding you suggested into mine. I'm sure it could be trimmed down but for the meantime its working! I couldn't put the function section in the head as its template driven so done it as below:
<div id ="movie">
<div align="center">
<script type="text/javascript">
AC_AX_RunContent( 'id','MediaPlayer','width','320','height','240','align','center','classid','CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6','standby','Loading Windows Media Player components...','type','application/x-ms-wmp','src','Intro Movie.wmv','url','Intro Movie.wmv','uimode','none','playcount','3' ); //end AC code
</script>
<noscript>
<object id="MediaPlayer" width="320" height="240" align="center" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
standby="Loading Windows Media Player components..." type="application/x-ms-wmp">
<param name="url" value="Intro Movie.wmv" />
<param name="uiMode" value="none" />
<param name="PlayCount" value="3"/>
<embed src="Intro Movie.wmv" width="320" height="240" align="center" url="Intro Movie.wmv" uimode="none" playcount="3"></embed>
</object>
</noscript>
</div>
</div>
If it can be cleaned up let me know but thanks for all your help!
i'm brand new on this forum and as you can tell this thread is super long so i'm sorry if this has been answered more than once. but basically i want to limit the play time of an embedded wmp to 5 seconds.... here's my code.
According to http://msdn2.microsoft.com/en-us/lib...11(VS.85).aspx
SelectionStart and SelectionEnd aren't 'PARAM elements of the object element'. I don't remember seeing SelectionStart or SelectionEnd in the wmp pages.
If it isn't possible to only play a selection you could make 5sec videos or use a script to limit the play time. eg
var wmpID=document.getElementById("VIDEO");
setTimeout("wmpID.controls.stop",5000);
You probably won't want to start the timer until the video starts playing.
According to http://msdn2.microsoft.com/en-us/lib...11(VS.85).aspx
SelectionStart and SelectionEnd aren't 'PARAM elements of the object element'. I don't remember seeing SelectionStart or SelectionEnd in the wmp pages.
If it isn't possible to only play a selection you could make 5sec videos or use a script to limit the play time. eg
var wmpID=document.getElementById("VIDEO");
setTimeout("wmpID.controls.stop",5000);
You probably won't want to start the timer until the video starts playing.
ntoo
Thanks so much ntoo.... that's what i was thinking but i wasn't sure. Also how would i call that function when the video loads? is there an onload or onstart i could put in parameters or in the object tag?
Because there are browsers out that do support the windows media player eg firefox, it just doesn't support the activex features of windows media player. I don't even think it supports the script that the user was using in their post. When developing a website for the internet its best to make sure your code is cross-browser yet you have the beginners who want a 'cool' looking site yet they have no idea how much of what they have done will only work in IE.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
Yep absolutely. It's best to write the page for all browsers if you want it to be 'cool' for everyone. Imo that means no wmp.
On a side note... In my recent experience it wasn't beginners who wanted the page to only work in IE. I didn't argue (much) with the person who signed the cheque. Just did what they wanted