Javascript Console Error Message

Game development with Board Game Arena Studio
Post Reply
User avatar
tchobello
Posts: 694
Joined: 18 March 2012, 13:19

Javascript Console Error Message

Post by tchobello »

Hello,
I have this message appearing in the Javascript Console and it keeps growing and growing all game long.

Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.


Where does it come from ?
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Javascript Console Error Message

Post by Victoria_La »

Anything else useful? Stack trace?
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Javascript Console Error Message

Post by Een »

This looks like trying to play a sound programmatically. Browsers now require a user interaction (such as a click) for playing a sound.
User avatar
tchobello
Posts: 694
Joined: 18 March 2012, 13:19

Re: Javascript Console Error Message

Post by tchobello »

well, after checking, it happens on both projects I'm working on...

Can someone look at what happens in the Javascript Console on other games ?
It increases on each move.

@Victoria_LA
It starts with

Code: Select all

Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
doPlayFile       @ ly_studio.js:2
doPlay            @ ly_studio.js:2
playSound       @ ly_studio.js:2
dispatchNotification       @ ly_studio.js:2
onNotification        @ ly_studio.js:2
pullResynchronizeLogsToDisplay      @ ly_studio.js:2
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Javascript Console Error Message

Post by Victoria_La »

Do you send notifications during startup code?
User avatar
tchobello
Posts: 694
Joined: 18 March 2012, 13:19

Re: Javascript Console Error Message

Post by tchobello »

it's also happening on games played here...

you can watch a game of Hive and refresh F12 after any move.
Post Reply

Return to “Developers”