Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to play video Microsoft media player for html pages

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

like image 624
Saghir A. Khatri Avatar asked Aug 10 '12 04:08

Saghir A. Khatri


People also ask

Why won't Windows Media Player play my videos?

There can be numerous reasons that your media player not showing a video. The reasons could be that your video file is damaged, corrupted, bad sectors on a hard drive, some electromagnetic interference, virus attack, or other software problems. Here are some errors that you can experience while playing the video file.

How do I enable Windows Media Player plugins in Chrome?

Windows Media Player To enable the plug-in, download the appropriate version for your operating system, then run the setup file. The player should install itself. You must restart Chrome to fully enable WMP.


1 Answers

Try this simple one:

<embed src="videos/1.wmv" width="600" height="470" type="video/x-ms-wmv"></embed>
like image 74
Jan Avatar answered Sep 28 '22 18:09

Jan