embedding windows media player - don't want autoplay

C

Cowtoon

I've embedded windows media player and set it up so that it plays on my
site, however, I can't get it to play with a single click. I can set it to
auto play, but I don't want that. Is there an easy way to do this?

Thanks.
 
J

John Malone

More information is needed
How (code) used to embed?
Have you set it to False?

<OBJECT ID="Player"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<PARAM name="autoStart" value="False">
</OBJECT>

Does it start on the second click?
This might be security settings.........

John Malone
===================
| I've embedded windows media player and set it up so that it plays on my
| site, however, I can't get it to play with a single click. I can set it
to
| auto play, but I don't want that. Is there an easy way to do this?
|
| Thanks.
|
|
 
J

John Malone

OK,

Here is one way to embed the video but no real control it just starts...

<p><embed width="350" height="350" src="salmon.asx"></p>
Demo Here...
http://www.xmas-i-am.com/test/video.htm

OR........ You can use the Object that lets you control much more!

<OBJECT ID="MediaPlayer" WIDTH="355" HEIGHT="300"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="salmon.asx">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="false">
<EMBED TYPE="application/x-mplayer2" src="salmon.asx" NAME="MediaPlayer"
WIDTH="355" HEIGHT="300" ShowControls="1" ShowStatusBar="0" ShowDisplay="0"
autostart="0"> </EMBED>
</OBJECT>

Demo Here......
http://www.xmas-i-am.com/test/video2.htm

In IE 6 due to security you first click to activate the controls then they
will work.

John Malone
====================
| More information is needed
| How (code) used to embed?
| Have you set it to False?
|
| <OBJECT ID="Player"
| CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
| <PARAM name="autoStart" value="False">
| </OBJECT>
|
| Does it start on the second click?
| This might be security settings.........
|
| John Malone
| ===================
| || I've embedded windows media player and set it up so that it plays on my
|| site, however, I can't get it to play with a single click. I can set it
| to
|| auto play, but I don't want that. Is there an easy way to do this?
||
|| Thanks.
||
||
|
|
 
T

Trevor L.

John said:
OK,

Here is one way to embed the video but no real control it just
starts...

<p><embed width="350" height="350" src="salmon.asx"></p>
Demo Here...
http://www.xmas-i-am.com/test/video.htm

I do it this way.
Add this to the HTML:
<span id="sound"></span>
<input type="button" value="Play/Stop
Music" onclick="playSound()"/>

Add this to your external JS file:
function playSound(fname)
{
if (!fname)
var fname = "audio/minuet.mid"
var x = document.getElementById("sound")
x.innerHTML = (!x.innerHTML )
? '<embed src="' + fname + '" loop=false autostart=true
hidden>' : ''
}
 

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

Top