Page 1 of 1

Videos to only play when I hit the music play button...

Posted: Thu Apr 14, 2022 11:38 pm
by SpaceTraveller
There might be a simple answer hopefully,

But with a few scenes of video all connected to the main scene - how do I prevent these videos playing until I start the music on the input sources window so they all start at the same time?

All stopping when I hit stop would be great too...


Any help greatly appreciated...

Re: Videos to only play when I hit the music play button...

Posted: Fri Apr 15, 2022 11:14 am
by Sadler
I think you asked this question before: https://magicmusicvisuals.com/forums/vi ... 84&p=10801

Re: Videos to only play when I hit the music play button...

Posted: Fri Apr 15, 2022 1:35 pm
by SpaceTraveller
Sadler wrote:I think you asked this question before: https://magicmusicvisuals.com/forums/vi ... 84&p=10801

Yes - I never did find a suitable outcome -I was hoping this could now be done in house (just using MMV) but sadly not :(

Here's hoping for the future :idea:

Re: Videos to only play when I hit the music play button...

Posted: Fri Apr 15, 2022 4:34 pm
by Magic
I tinkered for a few minutes and came up with something that:
1) rewinds a VideoFile module when the Input Sources file rewind button is clicked
2) pauses a VideoFile module when the Input Sources file pause button is clicked
Screen Shot 2022-04-15 at 9.30.54 AM.png
Screen Shot 2022-04-15 at 9.30.54 AM.png (268.1 KiB) Viewed 2784 times
The first expression is: if(x-xp=0, 0, 1)
Which, in this case, means that if the current playback time (x) is the same as the previous playback time (xp), set the speed to 0 (paused); else set it to 1 (normal)

Therefore it's important to know that xp is a reserved variable in the Expression modifier which stores the previous input value, whereas x is the current input value. This allows you to compare them.

The second expression is: if(x=0, 1, 0 )
Which, in this case, means that if the playback time is 0, trigger a rewind; otherwise don't do anything else.

Hope that helps!

Re: Videos to only play when I hit the music play button...

Posted: Sat Apr 16, 2022 2:31 pm
by SpaceTraveller
Thanks for that Eric; I look forward to trying it out further... ;)