Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Theo_v_
Beginner
60 Views

XDK Audio sample not working on iOS ?!

Hi there,

Today I opened the audio example packed with XDK and published it as an iOS app.
But all the buttons of the Low Latency Audio Plugin fail to play audio.
Also "online audio using HTML5 audio" fails to play... 
A working example is really appreciated

 

Tags (2)
0 Kudos
4 Replies
Elroy_A_Intel
Employee
60 Views

In order to access web-based audio for playing in your built app as you test on a physical device, you are recommended to place an asterisk (*) in the Network request field under the Cordova  Whitelist within Projects > Build Settings. Do not leave the asterisk in the build settings of the final version of your project before publishing.

Theo_v_
Beginner
60 Views

Hi Elroy,

Thanks for the quick reply. I added an asterisk to the white list as you suggested and rebuilded the IOS app. 
Unfortunately the example is still not working, Low Latency Audio Plugin still fails to play audio...

PaulF_IntelCorp
Employee
60 Views

Try adding the CSP rule found on this page > https://software.intel.com/en-us/articles/cordova-whitelisting-with-intel-xdk-for-ajax-and-launching... < to your index.html file to see if that works.

Which version of iOS are your trying to run that sample app on?

PaulF_IntelCorp
Employee
60 Views

Theo -- see the attached rewrite of that sample app. I've still got a bit more to do, but this should be more useful and should work better than what you were using. There have been a lot of changes to the Cordova project that have been raising cane with our samples. Thanks for pointing out the issues with this one, we'll get it updated in the product soon, until then, give this one a try and let me know if you find any problems with it.

Reply