IOS application cannot play audio file.
Question

Hi All,
How to play an audio file in an iOS mobile application in OutSystems.

Var audio= new.audio('source file'); 

audio.play(); 

Javascript only works on Android. iOS does not support it.

Please advise how to resolve the issue.

Dear Ramesh,
Greetings

Did you check following threads on forum ?
https://www.outsystems.com/forums/discussion/21431/play-audio-in-mobile-app/

https://www.outsystems.com/forums/discussion/51137/html5goodies-audio-player-in-ios/


I believe the issue is with the gesture or explicit call to the function required in iOS for playing the sound/video.
You can override that by putting event listener or on ready event to play the file manually.

Regards,

Palak Patel

Dear Ramesh,

Greetings of the day


Checking with you the possibility, if this solution was something you were looking for ?

If yes, I would suggest to mark it as resolved so other community members can get this resolution note once needed.


If its still not resolved, kindly let us know if you need any further help from community.


Regards,

Palak Patel

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.