2 Replies Latest reply on Oct 22, 2012 9:59 AM by Steve-Ex

    SWF video plays with explicit path but not using local web server

    Steve-Ex

      Trying to add a video to my website.  I have created a simple SWF file in Flash Pro CS5 by importing an FLV video.  I Publish the project,, it creates an HTML page (code below), and it plays the video as expected, but ONLY if the browser (IE, FF, or Chrome) is opening the URL as C:\users...myproject.html.  If I try to open it in the exact same location using http://localhost...myproject.html, the video controls at the bottom appear, but the video itself is just white space.  The seek bar "throbs" as if trying to load the video, but never does.

       

      Tried checking MIME types in IIS 7.5 (Windows 7), and have these set up for the site:

       

      .flv = video/x-flv

      .mp4 = video/mp4

      .swf = application/x-shockwave-flash

       

      Any idea what could be causing the problem?

       

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
          <head>
              <title>XML_PT1_Player</title>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <style type="text/css" media="screen">
              html, body { height:100%; background-color: #ffffff;}
              body { margin:0; padding:0; overflow:hidden; }
              #flashContent { width:100%; height:100%; }
              </style>
          </head>
          <body>
              <div id="flashContent">
                  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="880" height="525" id="XML_PT1_Player" align="middle">
                      <param name="movie" value="XML_PT1_Player.swf" />
                      <param name="quality" value="high" />
                      <param name="bgcolor" value="#ffffff" />
                      <param name="play" value="true" />
                      <param name="loop" value="false" />
                      <param name="wmode" value="window" />
                      <param name="scale" value="showall" />
                      <param name="menu" value="true" />
                      <param name="devicefont" value="false" />
                      <param name="salign" value="" />
                      <param name="allowScriptAccess" value="sameDomain" />
                      <param name="allowFullScreen" value="true" />
                      <!--[if !IE]>-->
                      <object type="application/x-shockwave-flash" data="XML_PT1_Player.swf" width="880" height="525">
                          <param name="movie" value="XML_PT1_Player.swf" />
                          <param name="quality" value="high" />
                          <param name="bgcolor" value="#ffffff" />
                          <param name="play" value="true" />
                          <param name="loop" value="false" />
                          <param name="wmode" value="window" />
                          <param name="scale" value="showall" />
                          <param name="menu" value="true" />
                          <param name="devicefont" value="false" />
                          <param name="salign" value="" />
                          <param name="allowScriptAccess" value="sameDomain" />
                          <param name="allowFullScreen" value="true" />
                      <!--<![endif]-->
                          <a href="http://www.adobe.com/go/getflash">
                              <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                          </a>
                      <!--[if !IE]>-->
                      </object>
                      <!--<![endif]-->
                  </object>
              </div>
          </body>
      </html>