Icontem

File: index.html

Recommend this page to a friend!
  Classes of Raul  >  JavaScript Video Cam Kit  >  index.html  >  Download  
File: index.html
Role: Example script
Content type: text/plain
Description: Exemple usage
Class: JavaScript Video Cam Kit
Embed webcam video and microphone audio on a page
Author: By
Last change: New js location and new comment
Date: 5 years ago
Size: 476 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta charset="UTF-8" />
    <title>Cam Rec</title>
</head>
<body>
<video autoplay id="videoplay"></video>


<script src="js/CamKit.js" type="text/javascript"></script>
<script>
    // CamKit
    var cam = new CamKit();

    cam.video = true;
    cam.audio = false;

    cam.width = 600;
    cam.height = 400;

	// Mandatory
    cam.selector = '#videoplay'
    
    cam.init()
</script>
</body>
</html>