Highlighted

AIR for iOS - StageWebView do not play mp3 and mp4 files through HTML on iOS 13 webKit

Explorer ,
Sep 18, 2019

Copy link to clipboard

Copied

AIR for iOS StageWebView has been having issues locating files in different sub-directory in the app since Apple changed to wkwebview since AIR26. There was a workaround to it by disposing the StageWebView that loads the HTML from directory A and initiate a new StageWebView to load HTML from directory B. However, this workaround no longer works now that Apple releases iOS 13. 

 

Even a commercial ANE (Distriqt NativeWebView ANE) can't make it work. Fortunately the ANE has an option to revert the webview to the old school UIWebView.

 

I don't understand why Adobe just refused to improve the StageWebView functionality to keep it up to date. 

 

Now if we need to make the iOS app to work on iOS 13 and up then we can't use the AIR StageWebView and must use an ANE. 

 

Is this a new feature request that I should send to Harman? 

 

Anyone has any thoughts or advice?

Views

411

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

AIR for iOS - StageWebView do not play mp3 and mp4 files through HTML on iOS 13 webKit

Explorer ,
Sep 18, 2019

Copy link to clipboard

Copied

AIR for iOS StageWebView has been having issues locating files in different sub-directory in the app since Apple changed to wkwebview since AIR26. There was a workaround to it by disposing the StageWebView that loads the HTML from directory A and initiate a new StageWebView to load HTML from directory B. However, this workaround no longer works now that Apple releases iOS 13. 

 

Even a commercial ANE (Distriqt NativeWebView ANE) can't make it work. Fortunately the ANE has an option to revert the webview to the old school UIWebView.

 

I don't understand why Adobe just refused to improve the StageWebView functionality to keep it up to date. 

 

Now if we need to make the iOS app to work on iOS 13 and up then we can't use the AIR StageWebView and must use an ANE. 

 

Is this a new feature request that I should send to Harman? 

 

Anyone has any thoughts or advice?

Views

412

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 18, 2019 0
Enthusiast ,
Sep 20, 2019

Copy link to clipboard

Copied

Harman has initally focused on Android (because of the 64 bit requirement), but is now starting to look at iOS also, so you should definitely send them a feature request.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 20, 2019 1
Explorer ,
Sep 21, 2019

Copy link to clipboard

Copied

Thank you. I just do not know where to submit the request to Harman from their website. Do you happen to know the correct link? Thank you much!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2019 0
Enthusiast ,
Sep 22, 2019

Copy link to clipboard

Copied

Glad you found a workaround using NativeWebView. If you need to submit feature request to Harman, they do monitor this: https://github.com/Gamua/Adobe-Runtime-Support/issues

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 22, 2019 0
Engaged ,
Sep 21, 2019

Copy link to clipboard

Copied

I have the same problem. Local files, html, js and images are loaded fine, but local .mp3 is not.

Inspecting with Safari, it says impossibile to load file, although listed in page external resources.

I have noticed that audio tag with .mp3 doesn't send user agent when loading a file, that might be the culprit.

Do you confirm with Distriqt ANE switching to UIWebView it loads local files succesfully?

Many thanks

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2019 0
Explorer ,
Sep 21, 2019

Copy link to clipboard

Copied

I have successfully switched to UIWebView using Distriqt NativeWebView ANE and everything works as expected.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2019 0
Engaged ,
Sep 22, 2019

Copy link to clipboard

Copied

Great. Thank you I'll keep this in mind.

I have found another solution. I built a local http server modifying the one in this post: http://coenraets.org/blog/2009/12/air-2-0-web-server-using-the-new-server-socket-api/ and load all asstes from localhost. This also allows me to lead assets on Android from applicationStorage instead of copying everything in cache. In this way regular StageWebView loads everything you need from local storage.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 22, 2019 0