Video Webcam Javascript
Greetings, everyone! I'm trying to learn about making a webcam website that works on PC and smartphones. I present to you two options: Option 1 and Options 2. Now, what's interesting is that only Option 2 works on mobile devices. Can someone explain to me the difference between Option 1 and Option 2? For me, they both do the same thing, with the only difference being the slightly shorter syntax on Option 1. I read a bit about promises, try and catch blocks, async functions, etc. but...to put it this way - it's "not sinking in". I understand the tutorials, but I'm not "getting it" as a concept in a "practical sense " and how it relates to the fact that only the second option works on both PC and mobile while the first throws an error. https://sololearn.com/compiler-playground/WQwHDMvLRoVx/?ref=app