How to toggle between audios files?

Q&A about the latest versions
Post Reply
User avatar
KRitchie
Posts: 46
Joined: Tue Apr 21, 2020 10:59 am
Location: Philadelphia, PA

Mon Aug 10, 2020 8:18 pm

I have a tour that has 7 polygon hot spots in one node. Each of the hotspots triggers an mp3 to play via a proxy ID. I have it set to mouse click, play/stop media. The issue is if I press polygon #1 it plays mp3 #1. Then if I press polygon #2, mp3 #2 starts, and now both audio files are playing.

How can I stop the other audio files when I click on a polygon hotspot, to activate that audio track? I only want to be able to hear 1 audio file at a time.

Thanks
- Kevin
User avatar
Hopki
Gnome
Posts: 10622
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Wed Aug 12, 2020 10:33 am

Hi Kevin,
See the attached project.
It is set up to work with point hotspots. But you can use the actions in the video element and still use the Hotspot Proxy ID.
This was when the polygon is selected the audio file is replaced.

Of if you're using dircetional sound, and a container then add the action, Mouse Down, Stop Media first, then Mouse Click Play media.
A Click is activated on mouse up.
Regards,
Attachments
project.zip
(34.17 KiB) Downloaded 7 times
Hopki
Garden Gnome Software 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/
User avatar
KRitchie
Posts: 46
Joined: Tue Apr 21, 2020 10:59 am
Location: Philadelphia, PA

Thu Aug 13, 2020 2:37 pm

Thanks so much Hopki. I never thought of using the video container to play audio files. I was definitely over complicating things.

- Kevin
Post Reply