Hello, I have been trying to make avi files play on a simple html page, but nothing happens?? It just shows the player and sits there. Code I am using: <object width="500" height="400" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="mediaplayer1"><param name="Filename" value="Naruto.001"><param name="AutoStart" value="True"><param name="ShowControls" value="True"><param name="ShowStatusBar" value="False"><param name="ShowDisplay" value="False"><param name="AutoRewind" value="True"><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" width="500" height="400" src="url is here" filename="Naruto.001" autostart="True" showcontrols="True" showstatusbar="True" showdisplay="False" autorewind="True"></embed></object> also tried a simpler one: <embed height=400 pluginspage=http://quicktime.apple.com/ src="url was here" width=500 loop="true" controller="true" autoplay="true"></embed> Neither produced anything? I have checked the source path over and over again. I even checked the permissions on the server!!! Any help would be greatly appreciated! Also, Is there a good (maybe free?) video converter out there? Thanks!
You cannot have the embed element in the object element. Try this: <object width="500" height="400" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="mediaplayer1"><param name="Filename" value="Naruto.001"><param name="AutoStart" value="True"><param name="ShowControls" value="True"><param name="ShowStatusBar" value="False"><param name="ShowDisplay" value="False"><param name="AutoRewind" value="True"></object> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" width="500" height="400" src="url is here" filename="Naruto.001" autostart="True" showcontrols="True" showstatusbar="True" showdisplay="False" autorewind="True"></embed>
Be aware that the <embed> element is not a W3C valid element. As a web standards advocate I avoid it, and I come over the whole thing with this sample technique: <object data="http://www.youtube.com/v/0klgLsSxGsU" type="application/x-shockwave-flash" width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/0klgLsSxGsU" /></object>
thanks for the help I would use youtube, but file size is an issue. Can't find a good conversion software.
update: still getting the connecting forever. Wonder if the file size is to big? 170mb? What is the best format for video's online? Software to convert to that?
Yes there is no reason why you should be using the .avi format. avi is way to big and uncompressed for the web. Flash can export that as a .swf I believe and probably knock it down to a few MB.
I have used the .flv format on a few occassions. I highly reccomend it. Compression is good and quality is not bad.