I have a web application with an HTML5 video player, and I've been asked to get it to work as an AIR app. So far so good, except that there is a bug in jPlayer that requires you to use absolute file paths for media if you're using flash fallback.
Yes there is a way. Setup a sandbox bridge. See: Cross-scripting content in different security sandboxes in the Adobe Flex 3 Help documents.
var path = air.File.applicationDirectory.resolvePath("your/path/file.ext");
var pathObj = air.File.applicationDirectory.resolvePath("your/path/"); var path = pathObj.url;
so your file could be located via absolute path with something like:
path + "/file.ext"