Hi,
I have embedded an .flv video into an .swf (using Captivate CS5)
Then I use Dreamweaver and insert the swf into html.
So far everything works ok, the video is displayed.
Now I create an Air File in Dreamweaver.
Result; The video is not displayed. Message: "Connection Error"
I am not a programmer. Do I have to change the .xml file or is there any other fix for this?
Thank you very much!
Claus
Hi!
here is my workflow:
- i create a simple html file in dreamweaver.
- embed a flv video
- then i use the AIR extension in Dreamweaver to pack the AIR file.
Everythings works fine (html content wil be displayed correctly etc)
however, the video will not show up
I would really appreciate you help! Contact me via richter.claus@web.de
Thank you!
Claus
There is a known issue with the way that the URLs are resolved in this scenario. What happens is that the Flash Player instance loaded by the HTML loader asks the host -- in this case AIR instead of a browser -- to resolve the URL. AIR sees that the video file is part of the application and returns the URL as an app:// URL.
The workaround is to use an absolute URL (which requires a small trick).
For example, if you were passing in the URL file in the JavaScript code like this:
flashVars.setAttribute("value","vid=anFlv.flv");
You should do this instead:
var File = window.runtime.flash.filesystem.File;
flashVars.setAttribute("value","vid=" + new File(File.applicationDirectory.resolvePath("anFlv.flv").nativePath).u rl);
oh, there is hope on the horizon!
Problem is: I don't understand where to apply the code that you provided. (i'm not a programmer, unfortunately)
I am using Dreamweavers AIR extension. There is no way to imply the code.
What can I do to run a video in AIR?
This seem to be such a simple task - but no solution yet.
Thank you so much!
This would be somewhat usefull if we where calling the FLV from javascript. However, both Clause and I are calling the flash object from the object tag. This is the default from Dreamweaver and also the prefered method for embeding a swf (my case) into a HTML Air app. The codebase I am using to create my Air app is modified html5 from the client's current website. (they would like this app to "look and work like the site")
For me, all is good exept the video. This app has to work offline or I'd just call the video from the website.
Is there a working example somewhere out there we can look at?
Life would be so much simpler if AIR supported the <video> tag in the webkit html engine. I'll use h.264. I promise! ![]()
Chris
North America
Europe, Middle East and Africa
Asia Pacific