0 Replies Latest reply on May 7, 2008 3:13 PM by stevetruckstuff

    Embeded Flash player not working

    stevetruckstuff
      I have a browser-based app that we are considering porting to AIR. The basic functionality of the app uses AJAX to pull down a list of videos to be displayed, then plays the video when it is selected. The browser-based app uses Quicktime videos, which I have come to learn won't work in AIR, so I'm trying to switch to a Flash player.

      My problem is that for the life of me, I cannot get AIR to play the video. I created the player in Flash, and everything works great there, as well as in any browser I can find. When I load in AIR, I see the player, but playback never starts. My application.xml file is very simple:
      quote:

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns=" http://ns.adobe.com/air/application/1.0" version="1.0">
      <id>test</id>
      <version>0.1</version>
      <name>test</name>
      <filename>test</filename>
      <initialWindow>
      <content>intro2.html</content>
      <visible>true</visible>
      <maximizable>true</maximizable>
      <minimizable>true</minimizable>
      <width>1100</width>
      <height>1000</height>
      </initialWindow>
      </application>
      and my page is also quite bland:
      quote:

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd">
      <html>
      <head>
      <title>Demo</title>
      <script type="text/javascript" language="JavaScript" src="AIRAliases.js"></script>
      </head>
      <body>
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="857" height="484" id="airPlayer" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="false" />
      <param name="movie" value="airPlayer.swf" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#000000" />
      <embed src="airPlayer.swf" quality="high" bgcolor="#ffffff" width="857" height="484" name="airPlayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" />
      </object>
      </body>
      </html>
      My xml file, intro2.html, airPlayer.swf and intro.flv are all in the same directory. Any advice would be appreciated.