1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <title>WebRTC Automated Test
</title>
5 <script type=
"text/javascript" src=
"adapter.js"></script>
6 <script type=
"text/javascript" src=
"test_functions.js"></script>
7 <script type=
"text/javascript" src=
"message_handling.js"></script>
8 <script type=
"text/javascript" src=
"getusermedia.js"></script>
9 <script type=
"text/javascript" src=
"jsep01_call.js"></script>
10 <script type=
"text/javascript" src=
"video_extraction.js"></script>
15 <td>Local Preview
</td>
20 <video width=
"640" height=
"480" id=
"local-view"
21 autoplay=
"autoplay"></video>
24 <!-- startFrameCapture() takes 5 parameters:
25 1. width: width of the video/canvas area.
26 2. height: height of the video area.
27 3. canvas_height: Height of the canvas.
28 4. fps: fps at which we would like to sample.
29 5. duration: The duration of the capturing. -->
30 <video width=
"640" height=
"480" id=
"remote-view"
31 autoplay=
"autoplay" onplay=
"startFrameCapture(640,480,480,30,5)">
38 <div id=
"output" style=
"display: inline-block;
39 position: relative; width: 640; height: 480">
40 <!-- Canvas height should be equal to video height if we want to
41 capture the whole frames. If we only want to capture the barcode,
42 canvas height should equal the barcode height. -->
43 <canvas id=
"remote-canvas" width=
"640" height=
"480"></canvas>