File: examples/example.html

Recommend this page to a friend!
  Classes of Elger van Boxtel  >  JS Webcam  >  examples/example.html  >  Download  
File: examples/example.html
Role: Example script
Content type: text/plain
Description: Documentation
Class: JS Webcam
Capture pictures or video with the webcam
Author: By
Last change:
Date: 6 years ago
Size: 810 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>JSWebcam example</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<style>
			img{
				max-width: 100%;
			}
			
		</style>
	</head>
	<body>
		<div>
			<button id="start">Start</button>
			<button id="stop">Stop</button>

			<button id="picture">Take picture</button>
			<button id="fallback">Use fallback</button>
		</div>

		<video id="video" autoplay></video>
		<img id="image" src="">
		<img id="thumb" src="">

		<script src="../lib/Webcam.js"></script>
		<script src="./impl.js"></script>
	</body>
</html>