Unable to play Microsoft media player video for html pages

I am trying to play a video on my site. his work on production. After publishing a site on a domain, the player does not play the video. Instead, it displays msgs in the media player panel as "Preparing to connect," "Connecting ..." and "Ready," which displays a dark screen.

Here is my video code.

<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 domain problems? thanks in advance

+7
source share
4 answers

Try this simple one:

 <embed src="videos/1.wmv" width="600" height="470" type="video/x-ms-wmv"></embed> 
+4
source

Your property does not have a source for the specified video. The insert has but not an 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 can also try to let go of the alltogether object and just rely on inlining.

+2
source

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> 
+1
source

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

0
source

All Articles