BleepingComputer.com: re:embedded win media player wont lay

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

re:embedded win media player wont lay

#1 User is offline   roland5575 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 12
  • Joined: 12-April 09

Posted 23 May 2009 - 03:01 PM

Hi everybody,
Finally got my site up and running, but i cant get the media player to play my video ("myvideo.wmv")
it works perfectly on my pc. Tearing my hair out!!! This is the code i am using:

<table border=0 width="800" cellpadding=15 bgcolor="black">
<tr>
<td width="500" height="400" Valign="middle"><br><OBJECT ID="MediaPlayer" WIDTH="400" HEIGHT="300" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="myvideo.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="myvideo.wmv" NAME="MediaPlayer"
WIDTH="400" HEIGHT="300" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>


</td>

Thank you

#2 User is offline   harish kumar 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 18
  • Joined: 18-May 09

Posted 29 May 2009 - 01:26 AM

use that code for that...

<OBJECT id="VIDEO" width="320" height="240" 
	style="position:absolute; left:0;top:0;"
	CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
	type="application/x-oleobject">
	
	<PARAM NAME="URL" VALUE="your file or url">
	<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
	<PARAM NAME="AutoStart" VALUE="True">
	<PARAM name="uiMode" value="none">
	<PARAM name="PlayCount" value="9999">
</OBJECT>


#3 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 29 May 2009 - 08:49 AM

@harish kumar, when you steal code from somewhere else, it is customary to give that site credit. In this case, the original code was from here:
http://forums.cubecart.com/index.php?showtopic=25875?read=1

It is shown again here:
http://stackoverflow.com/questions/760683/...r-into-web-page
http://www.mioplanet.com/rsc/embed_mediaplayer.htm

And in the subsequent discussion, you can see that there are problems with that code. :thumbsup:

Please take the time to make sure that any code snippets you are providing actually work, and then make sure to credit where you got them from.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users