• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Add 2 Webcam in one page with WebcamJS

javascriptphphtmlcanvaswebcam


PHP Snippet 1:

<div style="width: 100%;text-align:center;">
    <video id="myCamer2" width="150" height="150" autoplay></video>
</div>

PHP Snippet 2:

<script>
// second camera
let video = document.querySelector("#myCamer2");
let stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: false });
video.srcObject = stream;
</script>

Related Snippets

How can I get user id from session in javascript?

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

How to use PHPCBF to fix one issue at a time?

How to execute sql code based on fetch array

Split array into 4-element chunks then implode into strings

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

No definition found for function in vendor vscode

Target Laravelista is not instantiable

PHP 8.1: strftime() is deprecated

How to get median and quartiles/percentiles of an array in JavaScript (or PHP)?

Redirect to previous page with php

codeigniter 4 running error first time with xampp

Creating Combinations of Elements

how do i retrieve and display the alt text of an image in wordpress?

No result using makeStyles Material UI in react 18

About Contact Privacy policy Terms and conditions