Unmuting a video upon ‘enter section’ with id=”videos” and vice versa mute upon ‘leave section’… Event Listener?

I am desperatly trying to find somewhere where I can control the audio of a (unmute/mute) upon ‘entering a specific section’ and vice versa, mute upon ‘leave section’… Is this controlled by an JS Event Listener, or can it be controlled by some other manner?

Any help & code would be VERY much appreciated.

Thanks

Not managed to get anything to work, apologies