StageWebView on iOS crashes when loading local files
Using SDK 21 onwards, ios app crashes when stageWebView attempts to load local files. This worked prior to SDK 21. I am working on Windows.
I've tried loading external files and webpages, and that works fine. When loading local images and videos, the app crashes instantly.
Has anyone come across a fix? And for a short term aid, does anyone have suggestions on another way to load local video files using native video player?
Example:
| var webView = new StageWebView(); |
webView.stage = this.stage;
webView.viewPort = new Rectangle(0, (stage.stageHeight-videoHeight)/2, videoWidth, videoHeight);
var dir:File = File.applicationDirectory.resolvePath("videoAssets/"+model.videoToPlay);
webView.addEventListener(ErrorEvent.ERROR, traceError);
webView.loadURL(dir.nativePath); // Crashes here
