media playing - stop previous

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
ggibbon
Posts: 122
Joined: Fri Aug 01, 2014 1:02 pm

Hi there.

I have a file with mutlplte sound media which plays when clciking different buttons
within same single pano.
Is there a way that once the next button is pressed it will automatically stop previous media which was playing. I know you can do this manually wiht "stop media "element", but would be handy when you have a lot of different media with in pano. Thanks Greg :D
User avatar
Hopki
Gnome
Posts: 13046
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi, if your media uses a common naming convention such as Element01, Element02, etc., you would add a Stop Media action to the play button.
Knowing that actions get triggered in order starting from the top and working down, you would add the stop action first and then the play action.
The stop media action would use a regular expression to stop all media first, then play the single media file you want.

Example:
Mouse Click, Media, Stop Media, #Elelment.*
Mouse Click, Media, Play Media, Element05

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/
ggibbon
Posts: 122
Joined: Fri Aug 01, 2014 1:02 pm

Hi Hopki.

Thank you for replying on a Bank Holiday!
Will give this a go.

Greg
Post Reply