I am trying to embed some s3 WMV file urls in my html page, but the code below is not working.
<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=6,4,7,1112">
<param name="fileName" value="http://www.ladieda.com/mymovie.wmv">
<param name="autoStart" value="false">
<param name="showControls" value="true">
<param name="AllowChangeDisplaySize" value="true">
<param name="ClickToPlay" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.ladieda.com/mymovie.wmv" autoStart="false" ></embed>
</object>
I think this may be because nearly every browser does not support WMV as a type of file. Aside from IE, this type of format is unlikely to be compatible with most browsers.
Find an online file converter which the file format to WMV to Mp4 or something else.
This might help:
http://video.online-convert.com/convert-to-mp4
As L.S said most web browsers do not support WMV files, however services like https://vid.me/ allow for you to upload WMV files for free and using their embed code you may be able to resolve this issue.
Hope this helps!
Related
I've got a webpage which works with a MySQLi DB (this is a private website just for our company and it is not something global). Now, I want to upload some videos on server (and not on the DB) and put their links on the website. Now, here is my question: How can I make browser to open Windows Media Player (after clicking on each link by a user) and play the video on the computer, and not on the browser??
As a matter of fact, I do not want the browser to show my videos to users, I want each user to watch videos by Windows Media Player on their computers.
I think a simple should work in your html
video link
I video should download, depending on your users prefrences the video may open after its finished downloading... you can't force this
If you want stream then this embed should work:
<object id='mediaPlayer' width="320" height="285"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="http://www.yoursite.com/your-video.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name='loop' value="true">
<embed type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://www.yoursite.com/your-video.wmv" autostart="true" designtimesp='5311' loop="true">
</embed>
</object>
Note:
You would be better off using html5 tags and converting to mp4 - not that many people use windows media player these days
What's the correct way of adding a .mov file to a webpage?
I'm just adding this functionality to an existing file so I can't convert it to HTML5. The file is on the same server about 1G in size.
The client also doesn't want to use YouTube or Vimeo as it's on the homepage.
Had issues using the code in the answer provided by #haynar above (wouldn't play on Chrome), and it seems that one of the more modern ways to ensure it plays is to use the video tag
Example:
<video controls="controls" width="800" height="600" name="Video Name">
<source src="http://www.myserver.com/myvideo.mov">
</video>
This worked like a champ for my .mov file (generated from Keynote) in both Safari and Chrome, and is listed as supported in most modern browsers (The video tag is supported in Internet Explorer 9+, Firefox, Opera, Chrome, and Safari.)
Note: Will work in IE / etc.. if you use MP4 (Mov is not officially supported by those guys)
<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="256" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="sample.mov">
<param name="qtsrc" value="rtsp://realmedia.uic.edu/itl/ecampb5/demo_broad.mov">
<param name="autoplay" value="true">
<param name="loop" value="false">
<param name="controller" value="true">
<embed src="sample.mov" qtsrc="rtsp://realmedia.uic.edu/itl/ecampb5/demo_broad.mov" width="320" height="256" autoplay="true" loop="false" controller="true" pluginspage="http://www.apple.com/quicktime/"></embed>
</object>
source is the first search result of the Google
Well, if you don't want to do the work yourself (object elements aren't really all that hard), you could always use Mike Alsup's Media plugin: http://jquery.malsup.com/media/
I have created an html page with embedded audio in it, when I try to run it, Firefox and chrome do not display any media player on my HTML page. I recently downloaded a quicktime plugin but still Firefox does not identify it. May I know any supported media player plug-in for firefox and chrome?
here is the code:
<OBJECT id="Audio"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject"
width="144" height="50">
<PARAM NAME="URL" VALUE="music/Beethoven's Symphony No. 9 (Scherzo).wma">
<PARAM NAME="enabled" VALUE="True">
<PARAM NAME="AutoStart" VALUE="False">
<PARAM name="PlayCount" value="3">
<PARAM name="Volume" value="50">
<PARAM NAME="balance" VALUE="0">
<PARAM NAME="Rate" VALUE="1.0">
<PARAM NAME="Mute" VALUE="False">
<PARAM NAME="fullScreen" VALUE="False">
<PARAM name="uiMode" value="full">
</OBJECT>
WMA files aren't the most widely used/supported of files, so many of your end users would run into the same problems you're having.
A few options:
You might consider using a video service like youtube - upload it to youtube, and then cut and paste the "embed" code from them.
Even better, you could use a trial of an HTML5 video converting software, and code in an HTML5 solution.
Here is a link about inserting videos, with a section called "The Best HTML Solution" about half way down the page.
http://www.w3schools.com/html/html_videos.asp
This keeps autoplaying even when I set it to false 3 times. I don't know what to do it's getting on my nerves. Any ideas?
<object>
<param name="src" value="http://linkimprov.com/buu.mp3">
<param name="autoplay" value="false">
<param name="autostart" value="false">
<param name="controller" value="true">
<embed src="http://linkimprov.com/buu.mp3" controller="true" autoplay="false" autostart="False" type="audio/mp3" />
</object>
You can see how it autostarts in jsfiddle: http://jsfiddle.net/Lisandro/wCJzm/3/
I just started web design and audio is making me want to cut my pc in pieces. Any ideas of why it autoplays??
Thanks
better to use this tag
<audio controls="controls">
<source src="http://linkimprov.com/buu.mp3" type="audio/mp3" />
</audio>
it's working for me!!
works great for IE and *mp3 files but Firefox doesn't support *.mp3 files. It supports *.ogg audio files. Having to have two versions of each of your audio files isn't really a solution. Also, try to find a simple command line utility to create your *.ogg files... good luck.
i'm trying to embed a .wmv video into my website but doesnt work :(
i've googled and tried <embed> and <video>
the video i'm using was created by super converter and i've used WMV7 as video codec.
is there a crossbrowser solution for it - or should i better use flash video?
thx in advance
The <video> tag is specific to HTML5, and is very browser dependent. If you care about everyone seeing the video you should not be using this tag yet--wait a few years.
As for why the embed is not working, you'll have to show us code to see what is wrong. Here is an example snippet that should work.
<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="videofilename.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="videofilename.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
With any HTML questions, you should tell us what browser and OS you are using. Again, source code is very important to diagnosing problems.