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!
I think you are running into a path resolution bug in AIR. The fix is to provide an absolute path to the video instead of a relative path. That does require a little programming, though.
How are you passing the video URL to the video player?
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).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!
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!
Europe, Middle East and Africa