Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed!!! cannot play wmv files

Status
Not open for further replies.

bugeditor

Technical User
Oct 9, 2001
44
0
0
IN
Hi,
Iam trying to embed a media player in webpage .htm and play a video clip..Which I got from MSDN Help

page displays without error but, when I press play button as per code below.It says connecting to media and displays download window but never plays..see the following code and please help me

This may not exactly dream weaver question
Iam invoking metafile naida.wvx from here..which inturn calls naida.wmv..Please try to help

Thanks


<HTML>

<HEAD>
<TITLE>Embedded Windows Media Player Control</TITLE>
</HEAD>
<BODY>

<OBJECT ID=&quot;Player&quot; width=&quot;320&quot; height=&quot;240&quot;
CLASSID=&quot;CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6&quot;
CODEBASE=&quot; <PARAM name=&quot;URL&quot; value=&quot;

<EMBED TYPE=&quot;application/x-mplayer2&quot;
NAME=&quot;MediaPlayer&quot;
WIDTH=320
HEIGHT=240>
</EMBED>

</OBJECT>
<BR>
<INPUT TYPE=&quot;BUTTON&quot; NAME=&quot;BtnPlay&quot; VALUE=&quot;Play&quot; OnClick=&quot;StartMeUp()&quot;>
<INPUT TYPE=&quot;BUTTON&quot; NAME=&quot;BtnStop&quot; VALUE=&quot;Stop&quot; OnClick=&quot;ShutMeDown()&quot;>


<SCRIPT language=&quot;javascript&quot;>
<!--
function StartMeUp ()
{
Player.controls.play();
}

function ShutMeDown ()
{
Player.controls.stop();
}
-->
</SCRIPT>
</BODY>
</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top