Turn Background music off when video is played

Q&A about the latest versions
Post Reply
Dreamfoot
Posts: 25
Joined: Mon Oct 17, 2022 11:01 am

Hello I have several video_URL in my project and I want the background music to be turned off when video is played. How can I do that?
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Each video element can use actions to stop and start audio.
For example:
Activate, Media, Pause Sound, _background
Deactivate, Media, Play Sound, _background

These two actions added to a video element will do exactly what they suggest when the video element is playing a video, so when it is active it will pause the background sound.
When the video element has stopped, so it is deactivated, it plays the background 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/
Dreamfoot
Posts: 25
Joined: Mon Oct 17, 2022 11:01 am

Thank you Hopki. It worked.
Post Reply