Unable to play video Microsoft media player for html pages
Asked Answered
B

4

7

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

Bedspread answered 10/8, 2012 at 4:35 Comment(2)
Your classid imdicates you use MediaPlayer 6.4. What about the people who use a different version? Or no MediaPlayer at all?Eulogize
it simply asks user to download plugin for media player.Bedspread
N
4

Try this simple one:

<embed src="videos/1.wmv" width="600" height="470" type="video/x-ms-wmv"></embed>
Numerology answered 28/8, 2012 at 10:23 Comment(1)
Yes, I think I read about it. Just drop the whole object stuff and go for a single embed.Eulogize
E
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.

Eulogize answered 28/8, 2012 at 10:15 Comment(0)
T
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>
Thorianite answered 3/9, 2012 at 9:46 Comment(1)
Yes, the <video> tag is new in HTML5 and is currently supported in Internet Explorer 9, Firefox, Opera, Chrome, and Safari.Numerology
D
0

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

Diversion answered 8/1, 2014 at 0:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.