Question

I am trying to play audio after a touch on my website using audio element but the audio file is on aws cloud front. The audio is audible on Desktop Chrome but I cannot hear it on iOS Safari . Do they permit it , if yes then is there a config file that we need to create ?

Was it helpful?

Solution

To answer your titled question: yes mobile Safari does allow to play cross domain HTML5 audio (just tested it again on my iOS7 iPad). Though there has been report it is not working well with CORS attribute.

You could try to wildcard CORS on CloudFront. Maybe this can help you. Are you able to plug your iOS device on a Mac to use Safari debug console for iOS? If so there could be error showing up in the logs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top