Turn on webcam & stream to backend

I want to create a page in which a user presses on a button, his webcam turns on, video is shown on the screen and it’s streamed to my backend, after which my backend responds with text that’s overlaid on the screen. Would it be possible to do with embed code functionality? Or should I seek another platform to do this?

Thank you!