How to use Webcam with javascript?

HI there so i am trying to make my Webcam seeable in gdevelop. Yes i also looked into other topics espacily this one it gets my camera because my camera starts to light up blue but i dont get a video on the video element can someone show me how to do that? the only thing i see is pink on the video element