Browsers block certain actions, like trying to access the webcam, without the user interacting with the page. Similarly, autoplaying videos gets blocked under certain conditions