• 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

Converting alphabet letter to alphabet position in PHP [duplicate]

How to Create WooCommerce Subscription Product via. REST API?

Why does array_map() with null as callback create an "array of arrays"?

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

How do I set the maximum php memory limit

How to add class name to an existing tag in php

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

Implode array with array of glue strings

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

Laravel 8 Multiple Relationships for Factory

How do I loop through an MS SQL database with VB.NET?

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

How to put php code inside opening and closing shortcodes

How to get unique slug to same post-title for other time too?

How do I enable error reporting in Laravel?

About Contact Privacy policy Terms and conditions