Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Video embedding problem

    I'm trying to embed a video on my website. It all works fine on Chrome, IE and Safari latest version but fails to work properly on Firefox.

    here is the code:
    Code:
    <object style="border: solid 1px black"
            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="410px" height="390px">
       <param name="fileName" value="MY_VIDEO_FILENAME">
       <param name="animationatStart" value="false">
       <param name="transparentatStart" value="false">
       <param name="autoStart" value="false">
       <param name="showControls" value="true">
       <param name="Volume" value="-450">
       <embed type="application/x-mplayer2" 
              pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" 
              src="MY_VIDEO_FILENAME" 
              width="410px" height="390px"
              autostart="0" 
              showcontrols="1" 
              transparentatStart="0"
              animationatStart="0" 
              volume="-450">
        </embed>
    </object>
    What happens in Firefox is that the resizing doesn't work at all and the controls toolbar doesn't show up.
    I've tried removing the resizing tags but then a small default video window size takes over and I end up with the same problem.

    Any ideas where the problem is?
    I've looked all over the net and keep seeing the same kind of code so really don't see what I'm doing wrong.

    Many thanks

  • #2
    Regular Coder BoldUlysses's Avatar
    Join Date
    Jan 2008
    Location
    Winston-Salem, NC
    Posts
    938
    Thanks
    10
    Thanked 190 Times in 187 Posts
    <embed> is a proprietary IE tag. Firefox may not like that, especially if you're using a strict DOCTYPE (which you probably aren't, at least not the XHTML one, if your <param> tags aren't closed).

    This article is a good writeup on embedding video files cross-browser without the <embed> tag.
    matt | design | blog


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •