Problem Description
No audio in Chrome on android with iframe happens on C2 and C3. Works on all other browsers. It also happens with the iframes on Scirra arcade where no audio is heard on chrome for android.
My Chrome version is 61.0.3163.98
After looking into the console log on Chrome Android the error i'm getting is -
An AudioContext in a cross origin iframe must be created or resumed from a user gesture to enable audio output.
pluginProto.Instance c2runtime.js:16936
Runtime.loadProject c2runtime.js:4470
xhr.onload c2runtime.js:3701
XMLHttpRequest.send (async)
Runtime.requestProjectData c2runtime.js:3723
Runtime c2runtime.js:3613
cr.createRuntime c2runtime.js:7709
(anonymous) index.html:93
j jquery-2.1.1.min.js:2
fireWith jquery-2.1.1.min.js:2
ready jquery-2.1.1.min.js:2
I jquery-2.1.1.min.js:2
To view my c2runtime it's here
http://www.mediafire.com/file/0fs2a519e ... runtime.js
Attach a Capx
http://www.mediafire.com/file/lf52nzsle ... _test.capx
Description of Capx
After pressing play you then touch the other button and audio should play
Steps to Reproduce Bug
Observed Result
No audio
Expected Result
Hear audio
Affected Browsers
- Chrome on mobile: (YES)
- FireFox: (NO)
- Internet Explorer: (NO)
Construct 2 Version ID
R248
I found these posts which may help
https://github.com/WebAudio/web-audio-a ... 3c40f9f829
https://github.com/photonstorm/phaser/issues/2913