Yes you can, this is what used in webrtc. You can look at this sample: https://webrtc.github.io/samples/src/content/getusermedia/gum/ It shows how to display an user’s webcam.