Sound in a popup image

Q&A about the latest versions
Post Reply
LaurentVR
Posts: 41
Joined: Mon May 25, 2020 11:21 am

Hello,

New user here, I'm happy to reach the GG forum.
I'd like to know if there is a simple way to launch a sound when I open an image (with a popup image) ?

Thanks
Laurent
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Laruent,

Welcome to the forum :D

Yes there is a very simple way to launch a sound when you open an image.

1. Set up your Image Point Hotspot in the Viewer and the Image Hotspot Template in the skin
2. Select 'Audio' from the Viewer Modes
3. Double click in the Viewer and locate your audio file
4. Set the properties i.e. give it a meaningful ID, mode, Audio level, loop, etc

Add Audio.jpg
Add Audio.jpg (491.36 KiB) Viewed 1632 times

Here's a link to more info: https://ggnome.com/doc/sounds-add/

5. In the skin add a new Action to the ht_image hotspot template that has the Action Play Media with the Target the ID you set for the audio file.

New Action.jpg
New Action.jpg (793.96 KiB) Viewed 1632 times

Here's a link to the project above https://p2vr.s3-ap-southeast-2.amazonaw ... index.html

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
LaurentVR
Posts: 41
Joined: Mon May 25, 2020 11:21 am

Hello Tony,

First, I'd like to thank you for your reply ! :)

Other problem to come is to mute the background sound (the one I selected on my first pano) in order to listen the one of the image when I clic on !

And thanks again for helping
Laurent
LaurentVR
Posts: 41
Joined: Mon May 25, 2020 11:21 am

Can't find the way to stop the media when I close the image...

Try on button close -> Mouse clic -> Stop media but no result
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

Add a new Action to the Hotspot that pauses the background sound.

grab-1.jpg
grab-1.jpg (934.71 KiB) Viewed 1589 times

Add a new Action to the Close Button that plays the background sound.


grab-2.jpg
grab-2.jpg (921.91 KiB) Viewed 1589 times

Updated sample at https://p2vr.s3-ap-southeast-2.amazonaw ... index.html

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
LaurentVR
Posts: 41
Joined: Mon May 25, 2020 11:21 am

Works fine, thanks !
Post Reply