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.
Related
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!
I tried following code,
<html>
<body>
<object id="mediaplayer"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
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" width="320" height="310">
<param name="filename" value="videos\videofile_96.mp4">
<param name="animationatstart" value="true">
<param name="transparentatstart" value="true">
<param name="autostart" value="true">
<param name="showcontrols" value="false">
<param name="ShowStatusBar" value="true">
<param name="windowlessvideo" value="true">
<embed src="videos\videofile_96.mp4" autostart="true"
showcontrols="false" showstatusbar="0"
bgcolor="white" width="320" height="310">
</object>
</body>
So when I tried to play this video in FireFox and Chrome, wasn't played, but IE managed to play it.
Later I tried to add Windows Media Player plugin,Activex Control Plugin to both, but still problem remains the same.
Can anybody help??
Your problem is with (both times you use) videos\videofile_96.mp4 -- those should be forward slashes (/). IE plays nice with \, but other browsers won't, necessarily.
Also, the \ indicates to me that you may be using this on a local machine, rather than through a web server; this will definitely cause problems in non-IE browsers.
You are trying to use ActiveX which is IE specific. Try html5 video instead and it will work in Firefox and chrome
I am trying to embed a wmv video in an html code. The file is playing normally, but I want the website's user, to be able to see the fullscreen button, in order to enter a fullscreen mode.
However, the button does not appears. I have also EnableFullScreenControls flag turned on. Hoever it makes no difference. The code is shown below
<object id="MediaPlayer" width="500" height="500" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
standby="Loading Windows Media Player..." TYPE="application/x-oleobject">
<param name="FileName" VALUE="file:///C:/Users/john/Desktop/modus-files/HTML/videos/Danger.wmv">
<param name="ShowControls" VALUE="true">
<PARAM NAME="fullScreen" VALUE="true">
<PARAM name="uiMode" value="full">
<param name="ShowStatusBar" value="false">
<param name="ShowDisplay" VALUE="false">
<param name="autostart" VALUE="false">
<PARAM NAME="EnableFullScreenControls" VALUE="1">
<embed type="application/x-mplayer2" src="file:///C:/Users/john/Desktop/modus-files/HTML/videos/Danger.wmv" name="MediaPlayer"
width="400" height="400" fullScreen="full" ShowControls="1" ShowStatusBar="0" ShowDisplay="1" autostart="0"> </embed>
</object>
Thanks
I didn't found out what was the problem above. But as other people may have the same problem, I just wanted to post my workaround. I converted the videos to mp4, and then used the jplayer at the site. It is an html player and free and open source. That done the job quite easily. It is also (personal opinion) much beautiful that the media player.
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.
How can I stream an MP3 in a html page? I am looking for a solution, which does not allow user to download of MP3 content, while allowing user to play it.
The Flash Player remains the best means of doing this if you want to reach the largest audience. JWPlayer wouldn't be a bad choice.
This way requires the Media Player Plugin
Use Media Player object/embed code:**
<OBJECT ID="MediaPlayer1" 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" width="280" height="46">
<param name="fileName" value="http://www.domain.com/music/music.m3u">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.domain.com/music/music.m3u" name="MediaPlayer1" width=280 height=46 autostart=1 showcontrols=1 volume=-300>
</OBJECT>
replace your playlist or MP3 File
<param name="fileName" value="http://www.domain.com/music/music.m3u">
No one mentioned the <audio> tag?
http://www.w3schools.com/html5/tag_audio.asp