switch between video playback and live-input

I would like to switch in a jit.window between live-input and playback of prerecorded video. The problem I am having is that when I switch to live-im+nput, I still get the sounds from the prerecorded video. How do I solve that?

A combination of the [spigot~] object and the "soc" message to [jit.qt.movie] will give you access to the audio in Max directly, or you can simply set the [jit.qt.movie] rate to 0 when you switch to live input.

also if you want the prerecorded video to keep playing just send it the volume message or [vol $1] or just [vol 0] to turn the volume off and [vol 1] to turn it back up with a toggle going into that for volume on off..or just a number box if you want to fade the volume out or something