Video w/sound switcher
I am building a patch to play a video with sound and then another video w/sound is triggered. I want the 2nd & subsequent videos to play once and then the patch should return to the 1st video/audio. I'm able to somewhat get the video to switch but not the audio. I also need to figure out how to dispose of the 2nd video as its cranking the cpu if I don't dispose it. The 2nd videos do not loop, so I was trying to use loopreport to try to determine if it had stopped. I'm using a switcher but I feel like there's a better way. I'm very new to Max , so any help is appreciated.
I found a very nice example of what I'm basically looking for here
https://music.arts.uci.edu/dobrian/maxcookbook/ab-video-switcher-0
here's how I would pingpong between 2 movie(~) players using modern Jitter (8.1.4+)
the trick is to use loopnotify to trigger automatic, frame, and start messages appropriately.
yeah, that's cool. I'm using loopreport now. the issue today is that if I use a playbar and set loop points, it really screws with the loopnotify during the moving of looppoints and messes up my gswitch (which is switching the movies). I may try to turn off loopreporting during any editing of looppoints. I like your ideas as well, using automatic & frame 0
your script is pretty briliant in that it doesn't even rely on switches, selectors or anything, and I could even modify it to use loopstart instead of 'frame 0' (I think). This might result in me getting rid of the gswitch altogether. I can' t wait to try this out. Thanks!