sound lost if game screen sleep or switching apps on android

Discussion and feedback on Construct 2

Post » Wed Nov 04, 2015 9:45 pm

I am facing a strange error , if I run it with chrome android browser using wifi , then whenever i switch the windows suddenly it lost the sounds. I am running music behind the application which runs fine but other sounds stop working if i switch the windows. I thought maybe this error is due to the chrome browser so i have build it with crosswalk on XDK and then i ran the application directly on the device. In start everything works fine but if i do not touch the screen and device mode goes into sleep mode then if i wake up the device it get lost all sounds of the buttons except music. So it seems like this is coming from construct2 because running the app on chrome android browser or running as an apk both gives same results.

Error i have faced were following


Code: Select all
call.preview.js:1021
Uncaught (in promise) DOMException: A call to lockOrientation() or unlockOrientation() canceled this



Code: Select all
Uncaught (in promise) DOMException: A call to lockOrientation() or unlockOrientation() canceled this call.Runtime.tryLockOrientation @ preview.js:1021
Runtime.initRendererAndLoader @ preview.js:739
Runtime.loadProject @ preview.js:1655
xhr.onload @ preview.js:410


Code: Select all
javascript error uncaught invalidstateerror failed to execute 'drawimage' on 'canvasrenderingcontext2d': the htmlImageElement provided is in the 'broken' state. http://localhost:50000/preview.js, line 1858 (col 11)



I am desperate to fix this but after spending 6-8 hours I am failed and need help ...
B
9
S
2
Posts: 108
Reputation: 1,010

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests