javascript - Implementation workaround for audio issues for Cordova exported Construct 2 games -


i creating game using construct 2, on previewing on android smartphone, found audio playback , delay issue:

this possibly curse of web audio api in many browsers require user touch screen first or no music played. worse, if music played, user must touch screen once again. "by design" of these smartphone browsers. firefox seems allow music played without user initiated touch.

i've seen issue has been covered several times (ex. website html 5 audio autoplay , https://stackoverflow.com/a/22331782/144201) , of possible suggestions include using other audio javascript libraries entirely such soundjs , howler.js.

has have experience bringing in such audio library solve issue above cordova android export option? work android devices? in fact, can provide me link html5 game/page/app, exported c2 uses such audio library , play music without requiring user's initial touch on android check? want confirmation possible.

or there more elegant way construct 2?

previewing on browser has "user must touch screen once" issue because of "by design". if c2 app exported via cordova , uses crosswalk, game can play music without requiring user ever touch screen first.

see https://www.scirra.com/tutorials/809/how-to-export-to-android-with-crosswalk . although tutorial outdated current intel xdk, instruction more or less same. however, newer c2 versions create .xdk file upon cordova export. in intel xdk, must "open intel xdk project" instead of "import existing html5 project". see https://software.intel.com/en-us/forums/intel-xdk/topic/607195 more info.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -