Sounds not playing on Chrome and Safari, do play on Edge

Q&A about the latest versions
Post Reply
PIbrahimi
Posts: 27
Joined: Fri Dec 02, 2016 1:42 pm

Hi Martin et all!

Please have a look at the https://s3.eu-central-1.amazonaws.com/p ... index.html project which also includes different sounds on each pano.

Recently the sounds stopped playing on Google Chrome and Apple Safari browsers, they do however play nicely when viewed on Microsoft EDGE.

Any idea why this is happening, and possible fixes?

Many thanks!
P.
ViewIt360
Posts: 18
Joined: Thu Jan 02, 2020 11:49 am

Hello!

You'll probably find that if you have sounds set to autoplay, the Chrome and Safari browsers do not allow autoplay of video or sound. The user must click a play button in order to play the video or sound. The easiest way round this is to tie a 'play sound' action to the hotspot so it tricks the browser in to thinking the user has clicked to play the sound. Hopefully this makes sense.

Many thanks,

Chris
ViewIt360
Posts: 18
Joined: Thu Jan 02, 2020 11:49 am

Hi,

I've just checked your coding and both the Chrome and Safari browsers are indeed blocking the 'play()' function as you have this set to autoplay onload. You will need to move the 'play()' function to 'onclick' for either the hotspot itself or a button on the skin. If you need help with this, let me know and I can take a look.

Many thanks,

Chris
PIbrahimi
Posts: 27
Joined: Fri Dec 02, 2016 1:42 pm

Many thanks Chris for pointing me to the problem and offering help!!!

I am trying to use the solution via Hopki's proposed solution by a button on the skin. What I am unable to find however is how to stop the 'autoplay' function.

P.
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Loop -1 stop autoplay.
Also see: https://ggnome.com/doc/sounds-props/
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
PIbrahimi
Posts: 27
Joined: Fri Dec 02, 2016 1:42 pm

Thank you Hopki!

I must be doing something wrong. If you got time I would appreciate if you could have a look at the project file!?

Petrit
MuseumProjectENG.p2vr
(149.11 KiB) Downloaded 151 times
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

The project file looks ok, do you have any actions in the skin that could trigger a sound?
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
PIbrahimi
Posts: 27
Joined: Fri Dec 02, 2016 1:42 pm

Thing is that each Pano has got its own individual background sound. That's why I was trying to activate sound via the sound button. but obviously I am not able to get it working.

I am using poligon hotspots to switch from/to different panos, and also a floor plan and point hotspots. So I would try to avoid to assign an action to all three triggers.
PIbrahimi
Posts: 27
Joined: Fri Dec 02, 2016 1:42 pm

and here is also the skin file.
MULTILEVEL_FLOOR_PLAN_RESPONSIVE.ggsk
(1.27 MiB) Downloaded 164 times
PIbrahimi
Posts: 27
Joined: Fri Dec 02, 2016 1:42 pm

Hi Hopki, Hi Chris,

I would really appreciate your help on this?

Many thanks!
Petrit
PIbrahimi
Posts: 27
Joined: Fri Dec 02, 2016 1:42 pm

I'd like to show another funny thing:

Same project with different language: https://panoxk.s3.eu-central-1.amazonaw ... index.html

On Desktop/Chrome the sounds do not play
On iPhone 7+ / Chrome the sounds play automatically

:roll: :roll:
MPW
Posts: 123
Joined: Wed Mar 06, 2013 4:22 pm
Location: Germany

Hi there,

same for me:
sound on project was ok for months. Now no starting of sound in Chrome and IOS. Still OK on Firefox (Windows + Android) and IE.

Sound is started by button, MP3 and OGG-alternative included. Made with Pano2VR5 pro.

Still having a http-address instead of https (if this could be the problem).

Any idea for this? Thank you.

http://show360.de/unionskirche-idstein/
Sounds can be found on top level near organ.
Programming not smart but when starting the project variables were still new to me.
Attachments
audio2.jpg
audio2.jpg (138.68 KiB) Viewed 4313 times
audio1.jpg
audio1.jpg (31.13 KiB) Viewed 4313 times
MPW
Posts: 123
Joined: Wed Mar 06, 2013 4:22 pm
Location: Germany

Hi again,

hopefully it was OK to attach the same problem here instead opening a new post.

Any idea to solve the sound problem on IOS an Chrome?

A happy eastern to the GardenGnome-Team. Stay healthy and all the best!!!
MPW
Posts: 123
Joined: Wed Mar 06, 2013 4:22 pm
Location: Germany

... recalculation with Pano2VR 6.1 solved the problem.

Thanks
Post Reply