I have a video playing in a specific mode. I want to pause the background music track while it plays. I have tried using the track_player as suggested and it does not seem to pause the music track on the event defined. I have tried defining track_player in the global config and I have also tried defining it locally to the mode. Both seem to have no effect. I am wondering if anyone else has a working example of this.
Here is the code for the show_player (starting the video) and the events generated to trigger the track_player.
show_player:
timer_battimer_bombhurryup_started:
BombDisposalShow:
loops: 0
events_when_played: BatEvent_VideoPlaying_Started
events_when_stopped: BatEvent_VideoPlaying_Stopped
track_player:
BatEvent_VideoPlaying_Started:
music:
action: pause
fade: 1 sec
BatEvent_VideoPlaying_Stopped:
music:
action: play
fade: 1 sec
Here are the logs:
MPF:
https://pastebin.com/NSnVBAU9MC:
https://pastebin.com/Ez698ZwM