Play only one audio at a time

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
stanfordhealthcare
Posts: 8
Joined: Wed Jun 05, 2019 1:21 pm

Play only one audio at a time

Post by stanfordhealthcare » Mon Jul 08, 2019 8:06 pm

Hi all, I've developed a project that has multiple hotspots. Clicking each will play an associated audio, specified using action "play media" in the skin hotspot template. But they can play over each other. To avoid this, I added a bunch of actions to each one which "stop media" for every other audio file on the skin. This is tedious when I have an audio update, going through to sub all the other "stop" actions.
Is there a method to specify either that only one audio can play at a time, or to "stop all" audio before playing a new one?
Thanks!

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

Re: Play only one audio at a time

Post by Hopki » Mon Jul 08, 2019 10:46 pm

HI,
Try Stop Media, Target: _main.
This should stop all media in one action.
Regards,
Hopki

stanfordhealthcare
Posts: 8
Joined: Wed Jun 05, 2019 1:21 pm

Re: Play only one audio at a time

Post by stanfordhealthcare » Tue Jul 09, 2019 10:45 pm

Awesome! Thanks so much!

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests