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 firstname.lastname@example.org
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).
You should do this instead:
var File = window.runtime.flash.filesystem.File;
flashVars.setAttribute("value","vid=" + new File(File.applicationDirectory.resolvePath("anFlv.flv").nativePath).url);
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!
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!