• 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 to add a custom field to all Woocommerce attribute terms using add_action

Custom add to cart button URL for specific product in WooCommerce?

get folder directory from input type file - PHP

Unable to create lockable file - Laravel 8 & PHP 8

auth pages not getting css in laravel

advanced custom fields wordpress custom class

Manage independently the decimal number of the price of each product [duplicate]

Artisan, creating tables in database

Unable to uninstall brew php from homebrew

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

args[max_input] woocommerce if statement confused

Symfony - "framework.test" config is not set to true

XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection

Display a product custom field only in WooCommerce Admin single orders

No definition found for function in vendor vscode

About Contact Privacy policy Terms and conditions