# webcam connection problem

**URL:** <https://forum.kirupa.com/t/webcam-connection-problem/638170>\
**Category:** web dev\
**Created:** [May 3, 2018, 10:18am UTC](https://forum.kirupa.com/t/webcam-connection-problem/638170 "2018-05-03T10:18:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hao](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hao](https://forum.kirupa.com/u/hao)\
**Post date:** [May 3, 2018, 10:18am UTC](https://forum.kirupa.com/t/webcam-connection-problem/638170/1 "2018-05-03T10:18:11Z")

</div>

> **[Accessing Your Webcam in HTML5](https://www.kirupa.com/html5/accessing_your_webcam_in_html5.htm)**
>
> Learn how the video element combined with the getUserMedia function can help you display your webcam's video stream in the browser.

  
i learn this but i cant connect to my webcam… and the webcam is on but show nothing in display…  
it show — \>  
file:///C:/xampp/htdocs/Webcam/index.html

what my problem? pls help

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [May 3, 2018, 10:28am UTC](https://forum.kirupa.com/t/webcam-connection-problem/638170/2 "2018-05-03T10:28:16Z")

</div>

Does the code in the example work? Have you tried uploading your example to a HTTPS server somewhere and see if that fixes your problem? 🙂

---

<div class="post-metadata">

**Author:** ![hao](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hao](https://forum.kirupa.com/u/hao)\
**Post date:** [May 3, 2018, 10:43am UTC](https://forum.kirupa.com/t/webcam-connection-problem/638170/3 "2018-05-03T10:43:32Z")

</div>

i don have own server 😔  
i just try to learn something online… got the offline webcam teaching?

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [May 3, 2018, 10:44am UTC](https://forum.kirupa.com/t/webcam-connection-problem/638170/4 "2018-05-03T10:44:45Z")

</div>

For security reasons, the webcam may not work when tested from the local file system ☹

---

<div class="post-metadata">

**Author:** ![hao](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hao](https://forum.kirupa.com/u/hao)\
**Post date:** [May 3, 2018, 10:48am UTC](https://forum.kirupa.com/t/webcam-connection-problem/638170/5 "2018-05-03T10:48:29Z")

</div>

ok … i will go check for some free server to test … ur code is nice and clean … i love it … tqsm
