Activate by audio

Hi all,
I’m trying to solve this simple thing (i was thinking it was simple)
I have an audio input and I want to activate and stop a video when the audio analysis is over X like play with the first clap and stop with the second clap. I’m trying to use the flipflop but seems it doesn’t work