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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Location
    Ohio
    Posts
    286
    Thanks
    7
    Thanked 9 Times in 9 Posts

    Video will not play using FF

    I have a video that I would like to display as full screen through windows media player. The way I currently have it set up works perfectly, but only in IE. FF, Netscape and Opera do not play the file.

    I think that the problem lies with the script here:
    Code:
    <script type="text/javascript">
    function keyPressHandler(e) {
    var kC  = (window.event) ?    // MSIE or Firefox?
    	event.keyCode : e.keyCode; 
    var Esc = (window.event) ?    
        27 : e.DOM_VK_ESCAPE // MSIE : Firefox <--specifically with this
    if(kC==Esc) window.close();
    }
    </script>
    ...however, I am not sure what the issue is or how to fix it.

    Here is the code I am using for the embedded media player:
    Code:
    <body onkeypress="keyPressHandler(event)">
    <object id="mediaPlayer" width="100%" height="100%" 
          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="sweethome.mpg">
          <param name="animationatStart" value="true">
          <param name="transparentatStart" value="true">
          <param name="autoStart" value="true">
          <param name="showControls" value="true">
          <param name="loop" value="false">
          <embed type="application/x-mplayer2" 
          pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
          showcontrols="true" width="100%" height="100%" 
          src="sweethome.mpg" autostart="true" loop="true"></object>
    </body>
    The page (http://www.doriennesmith.com/dorienn...sweethome.html) works fine in IE, but does not show with anything else. Can anyone tell me what I am doing wrong?

    Many thanks!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Firefox is looking for the video in the dorienne directory. Look at the src for the embed.
    Code:
          <embed type="application/x-mplayer2" 
          pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
          showcontrols="true" width="100%" height="100%" 
          src="../sweethome.mpg" autostart="true" loop="true">
    Do you ever follow up on your old threads? You have started a few and people responded but you never check back. Your video would best be done in flash video since flash video can preload on almost any server. I have to wait for it to download now to play it cleanly.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Dec 2005
    Location
    Ohio
    Posts
    286
    Thanks
    7
    Thanked 9 Times in 9 Posts
    Thanks. I think Frontpage added the source (../sweethome.mpg) to the embed tag on its own because I do not remember adding it....

    Quote Originally Posted by _Aerospace_Eng_
    Do you ever follow up on your old threads? You have started a few and people responded but you never check back. Your video would best be done in flash video since flash video can preload on almost any server. I have to wait for it to download now to play it cleanly.
    I saw everything about the FLV Encoder, the converters, and the flash video tutorials, but I have been having troubles embedding the videos into flash and with making flash display properly. I am in need of a temporary solution until I understand where I am making mistakes in flash. Thanks for all your tips with this, though!

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I converted the video to flash for you. See it in action here. If you press esc it closes the opened window. window.close() will only fire if it was opened as a popup. If it wasn't nothing will happen. I did it this way to avoid any JS errors. You can download it here. I included instructions on how to change the music file.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Regular Coder
    Join Date
    Dec 2005
    Location
    Ohio
    Posts
    286
    Thanks
    7
    Thanked 9 Times in 9 Posts
    Wow! Thanks so much for taking the time to help me with this. My site is really coming together because of your tips!


  •  

    Posting Permissions

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