Computer Hope

Internet & Networking => Web design => Topic started by: A10 Tactical on September 03, 2012, 10:24:38 AM

Title: Need a hand embeding video files into my website
Post by: A10 Tactical on September 03, 2012, 10:24:38 AM
I am having quite a difficult time with this.  All of the videos work correctly when I view my website in firefox but in Chrome nothing appears and in Internet Explorer only the play button appears with no video above it.

Is there any kind of universal video embed code that will work in all 3 of those browsers?

Here is what I have currently as my 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="256">
<param name="videos/M-14.avi" value="videos/M-14.avi">
<param name="animationatStart" value="True">
<param name="transparentatStart" value="True">
<param name="autoStart" value="True">
<param name="showControls" value="True">
<param name="Volume" value="-450">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="videos/M-14.avi" name="MediaPlayer1" width=350 height=350 autostart=0 showcontrols=1 volume=-450>   
Title: Re: Need a hand embeding video files into my website
Post by: TechnoGeek on September 03, 2012, 11:30:32 AM
if it works in firefox and not chrome, something is probably wrong with the embed code, but it looks okay to me. may be a plugin compatibility issue as well (?)

in IE, it looks like the param where you set the video name is incorrect. I think you mean <param name="filename" value="videos/M-14.avi"> for that first tag.
Title: Re: Need a hand embeding video files into my website
Post by: A10 Tactical on September 03, 2012, 12:57:16 PM
Thank you Techno all seems to be working now :))