Pause/Stop Video or audio on Screen recording Detected

Is there any type of extension available,
That if a user tried to screen record a screen the extension will detect it and stop or pause the video, if screen recording stopped by the user, video will be automatically played???

If there is any type of extension available, let me know!