Problem With Loading Files On Android
Hi,
I am using the below code to load video which is packaged within my app. It works fine on IOS and the desktop, but not on Android. It appears that the nativePath property is null for some reason on Android. Does anyone know the reason for this?
thx
var videoFile:File;
var videoPath:String;
var description:String = contentXml.text;
var videoUrl:String = contentXml.media.source.(@type == "large_image");
var videoPathStr:String = "data/cmms/images/" + cmmsAssetId + ".mp4";
videoFile = File.applicationDirectory.resolvePath(videoPathStr);
videoPath = new File(new File(videoFile.url).nativePath).url;
