I'm try to play voice in safari using HTML5 Audio. But it not work over https, http is fine.
var audio = new Audio();
audio.src = "https://example.com/xxxx.wav";
audio.play();
Is impossible to play audio over https? If not use html5 audio, is there any other alternative solution to play voice over https under safari?
Thanks
As far as I have found out this is Webkit bug and thus happens also in iPhone and Android mobiles. We serve all audio over standard cross domain site over http and they work fine, even when DOM itself is retrieved over https.
It might work in some versions of Safari over https if you load the audio from same host as DOM though. See here: http://areweplayingyet.org/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With