• 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

Malformed MIME header error in Symfony 5.3

How to insert data from multiple select dropdown values into database?

How to keep value of selected value after form submission?

Using Associative arrays

Query Optimization, changing the queries in the loop into a single processing query

HTML and PHP in one file

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

Target Individual Form Instance/Counter Inside A PHP While Loop

Inserting Country Selection into MySQL PHP [duplicate]

file_get_contents() without "Http" to access external URL [closed]

Xdebug 3 not showing in phpinfo on m1 Monterey

merging two arrays with specified index

Cache clear probem in Larave

Dynamic table in HTML using MySQL and php

GA4 custom event from server side, can someone tell me how i can do the following code in php?

About Contact Privacy policy Terms and conditions