Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] [HTML5]-Windows 10 Chrome/Opera Internet Browsers Have No Audio?

Author
Message
JeZxLee
3
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 12th Sep 2020 19:32
Hi,

We are using most up-to-date AppGameKit Classic on Windows 10.
We built for HTML5 and uploaded to our site.

Audio is not working on Windows 10 Chrome and Opera Internet browsers?
(audio does work on Windows 10 Edge and Firefox)

You can run the game at below temporary URL link:
https://fallenangelsoftware.com/stuff/files/LettersFall/HTML5t/index.html
(game update is not live on our website yet)

Any ideas?

Jesse

JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

JeZxLee
3
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 12th Sep 2020 20:13 Edited at: 12th Sep 2020 20:13
Above no sound issue on Windows 10 Chrome & Opera Internet browsers is also present in AppGameKit Studio:

https://fallenangelsoftware.com/stuff/files/LettersFall/HTML5s/index.html
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
JeZxLee
3
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 13th Sep 2020 01:09
Built another game with current Classic and Studio.
Same issue with audio not playing in Chrome/Opera on Win 10.

Something changed since last update.
Hope this can be fixed - we can't release HTML5 update...
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
fubarpk
Retired Moderator
15
Years of Service
User Offline
Joined: 11th Jan 2005
Location: Adelaide
Posted: 13th Sep 2020 02:13
are you using a sound format that is compatible with browsers
i seem to recall there were very specific sound settings required

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
JeZxLee
3
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 13th Sep 2020 11:44
Can you point to official documentation for the above?

Also, on Steam is it possible to install older version of AppGameKit?
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
jd_zoo
2
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 13th Sep 2020 13:51
Are you using MP3? There are issues with OGG and HTML5, which is why AppGameKit has left the depreciated MP3 support in.
JeZxLee
3
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 13th Sep 2020 14:33
Yes, we are using OGG music file format...

We had no problems until last update.
Something has broken with last AppGameKit update and HTML5 audio on Win 10 Chrome/Opera...
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
jd_zoo
2
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 13th Sep 2020 15:17 Edited at: 13th Sep 2020 15:24
https://www.appgamekit.com/documentation/Reference/Music.htm

Quote: "The old music commands have been deprecated in favour of the new OGG music commands (except on HTML5). The new commands require files compressed with OGG Vorbis, but will work on all platforms, support multiple music files playing at the same time, and allow seamless looping.

On HTML5 the old music commands have better performance than the newer commands."


This just popped up on another post recently:
https://forum.thegamecreators.com/thread/226805

Which funny enough links back to your post a year ago about having issues with OGG in HTML5
https://forum.thegamecreators.com/thread/225286
JeZxLee
3
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 14th Sep 2020 01:07
Ok, we will try MP3 in the morning...
...but OGG has worked 100% perfectly on HTML5 browsers for several years until now?
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
JeZxLee
3
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 14th Sep 2020 16:37
Hi,

Changing over to MP3 for music and WAV for sound effects did not solve above issue:
https://fallenangelsoftware.com/stuff/files/LettersFall/HTML5/LF/LettersFall110Percent.html

Still no audio on Windows 10 Chrome & Opera (audio works on Win 10 Edge & Firefox)
Please advise.

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
JeZxLee
3
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 14th Sep 2020 17:11
Hi,

Definitely a problem here now with current Classic and Studio.
Getting no audio on Windows 10 Chrome & Opera(audio works fine on Edge & Firefox)

Using the following:
- Windows 10 Pro 64Bit version 2004
- Chrome version 85.0.4183.102 (Official Build) (64-bit)
- Opera version:70.0.3728.178

Any other ideas?

I think Chrome is telling us something in console that should be checked:
"AGKPlayer.js:1 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page."

I think Chrome & Opera now must have user input before audio will play.

Please advise...

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
Conjured Entertainment
AGK Developer
15
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 15th Sep 2020 05:18 Edited at: 15th Sep 2020 05:30
Quote: "Any other ideas?...

...I think Chrome & Opera now must have user input before audio will play.

Please advise...
"

Do you have it playing automatically or with an event? (I am using Firefox, so I hear music at start, so assuming automatic)

I see you have the mute button already.

Perhaps you could default it to off and let the user click that to turn it on. (you could use a flag to only load the first time un-muted)

Not ideal, but if you can detect the browser in use (even by checking to see if it is loaded/playing already, or GetMusicExistsOGG() or GetMusicExists() maybe) then you could default off for those browsers and not affect other users with say Firefox.

If it is just a matter of requiring them to click something before loading/playing , then that seems to be something fairly easy to work around.

Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1
jd_zoo
2
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 15th Sep 2020 13:02 Edited at: 15th Sep 2020 13:11
I have sound when I start a level, very slow initial load and it was actually so heavy in resources I couldn't do a video clip record to show you.

Windows 10 / Chrome Version 85.0.4183.102 (Official Build) (64-bit)


Edit - Got a clip to record, had to start before app loaded: https://youtu.be/xn_w7-SGkKU



Attachments

Login to view attachments
Conjured Entertainment
AGK Developer
15
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 15th Sep 2020 17:13
My only other suggestion now would be to edit your music to shorter clips that loop.

Again, not ideal, but if load times are an issue... (good news is , you only have to load once)

Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1
JeZxLee
3
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 15th Sep 2020 19:07
This post has been marked by the post author as the answer.
Ok, it works now:

https://fallenangelsoftware.com/stuff/files/LettersFall/HTML5/LF/index.html

On Chrome/Opera Internet browsers you must get user input(mouse click) before playing any audio...

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com

Login to post a reply

Server time is: 2020-10-22 02:05:05
Your offset time is: 2020-10-22 02:05:05