• 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

Transpose multidimensional array and join values with commas

How can I make good efficent AJAX live forms with just jQuery and

Add record for each array elements if missing in table

Get all WooCommerce products within own plugin

Doctrine 2 mapping referencing unique key

Problems getting instance of UploadedFile in Yii2

Laravel Blade checkbox not checked

User pool client {id}does not exist

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

PHPExcel export HTML table to xlsx

How to submit a form when page loads using JavaScript?

Prevent blank space in pdf pages (DomPdf)

Results page in other window

array_map triple dimensional array [duplicate]

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

About Contact Privacy policy Terms and conditions