Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Audio not loading in html5 build
Started by javier780 Apr 09 2019 09:57 AM

- - - - -
3 replies to this topic
html5 audio
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

javier780

[GLOBAL: userInfoPane.html]
javier780
  • Observer

  • 7 posts
  • Corona SDK

Hi! I'm having trouble exporting a game to html5. The build process goes fine, but when I start the game, I received a "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page." warning and the audios are not running. If I manage to click outside the Corona window in the browser, the sounds will run, but they won't run if I interact with the game.

 

Is there a workaround for this issue?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,062 posts
  • Enterprise

What version of Corona are you using?

 

Rob



[TOPIC: post.html]
#3

javier780

[GLOBAL: userInfoPane.html]
javier780
  • Observer

  • 7 posts
  • Corona SDK

Hi Rob! I'm using Version 2019.3474 (2019.4.2)



[TOPIC: post.html]
#4

javier780

[GLOBAL: userInfoPane.html]
javier780
  • Observer

  • 7 posts
  • Corona SDK

Any suggestions?




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: html5, audio