Preventing Voice recording [ Screenshoot component prevent video but not Voice ]

If you use default block there you could find permission granted or not.
If permission not granted set your video player sound to zero

If not you can try this extension

Here you can find, screen recording is recording block , so if it is true set your video volume to zero. I don’t know which block you are using to play the video so I cannot imagine from your side