8

i am trying to play videos on my site. its working on production. After publishing site on domain player isn't playing videos. Instead its showing msgs on media player bar like 'Preparing to connect', 'Connecting...' and 'Ready', which shows dark screen.

Here is my code of videos.

<SPAN id="music1"> 
<OBJECT  style="width:560px; height:300px" id=mediaPlayer
codeBase=http://activex.microsoft.com/activex/controls/mplayer/
en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject
standby="Loading Microsoft Windows Media Player components..."
style="margin-left: 0px" classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>
<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows
/mediaplayer/en/download/" bgcolor="darkblue" showcontrols="true" 
showpositioncontrols="true" showstatusbar="tue" showgotobar="true"
src="videos/1.wmv" autostart="true" designtimesp="5311"
loop="true" height="600" width="470">
</OBJECT></SPAN>

Please let me know, where i am doing wrong, or its domains issue?? Thanks in advance

yunzen
  • 32,854
  • 11
  • 73
  • 106
Saghir A. Khatri
  • 3,429
  • 6
  • 45
  • 76

4 Answers4

4

Try this simple one:

<embed src="videos/1.wmv" width="600" height="470" type="video/x-ms-wmv"></embed>
Jan
  • 1,231
  • 2
  • 13
  • 19
  • 1
    Yes, I think I read about it. Just drop the whole object stuff and go for a single embed. – yunzen Aug 29 '12 at 11:11
2

Your object doesn't seem to have the source of the video specified. The embed has, but not the object

<SPAN id="music1"> 
<OBJECT  style="width:560px; height:300px; margin-left: 0px" id="mediaPlayer"
codeBase="http://activex.microsoft.com/activex/controls/mplayer/
en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject"
standby="Loading Microsoft Windows Media Player components..."
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
    <PARAM NAME="URL" VALUE="videos/1.wmv">

<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows
/mediaplayer/en/download/" bgcolor="darkblue" showcontrols="true" 
showpositioncontrols="true" showstatusbar="tue" showgotobar="true"
src="videos/1.wmv" autostart="true" designtimesp="5311"
loop="true" height="600" width="470" />

</OBJECT>
</SPAN>

You could also try to let go the object alltogether and just rely on the embed.

yunzen
  • 32,854
  • 11
  • 73
  • 106
1

Try using

<video width="320" height="240" controls="controls">
  <source src="movie.mp4" type="video/mp4" />
  <source src="movie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video>
Mahesh Jasti
  • 572
  • 3
  • 18
  • Yes, the ` – Jan Oct 24 '12 at 11:20
0

you can try this one: classid=CLSID:clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6

Saghir A. Khatri
  • 3,429
  • 6
  • 45
  • 76
Maxpan
  • 563
  • 5
  • 8