# Use user's webcam as texture in HTML5 Browsergame

**URL:** <https://forums.unrealengine.com/t/use-users-webcam-as-texture-in-html5-browsergame/470379>\
**Category:** Platform & Builds\
**Tags:** HTML5, javascript, unreal-engine, question\
**Created:** [August 26, 2020, 11:03pm UTC](https://forums.unrealengine.com/t/use-users-webcam-as-texture-in-html5-browsergame/470379 "2020-08-26T23:03:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Verrro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Verrro](https://forums.unrealengine.com/u/Verrro)\
**Post date:** [August 26, 2020, 11:03pm UTC](https://forums.unrealengine.com/t/use-users-webcam-as-texture-in-html5-browsergame/470379/1 "2020-08-26T23:03:29Z")

</div>

Hello,  
I’m looking for a way to implemnet the user’s webcam stream into my html5 browsergame as a texture. I tried to caatch the camera directly with a Media player but with no luck. The webcam device is not detected by the browsergame (with “enumerate video capture devices”) . I was also looking into this [Sample Project] since it is able to communicate between the game and the browser. With the JS Script I was able to detect my webcam and do an alert. But I can#t figure out how to feed the camera stream back into the game.

Any Ideas?

[https://drive.google.com/file/d/1HJSNqTTlc2JJkvFAEpluSfKxhUpE23XO/view?usp=sharing](https://drive.google.com/file/d/1HJSNqTTlc2JJkvFAEpluSfKxhUpE23XO/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Verrro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Verrro](https://forums.unrealengine.com/u/Verrro)\
**Post date:** [August 27, 2020, 5:21pm UTC](https://forums.unrealengine.com/t/use-users-webcam-as-texture-in-html5-browsergame/470379/2 "2020-08-27T17:21:39Z")

</div>

![311488-samplehtml5-js.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/d/8edd50f5cb22f5a99f284739ae407b88e74a057d.jpeg)
