File: examples/simple_selectmenu.html

Recommend this page to a friend!
  Classes of Andras Toth  >  Expert JS Camera Capture  >  examples/simple_selectmenu.html  >  Download  
File: examples/simple_selectmenu.html
Role: Example script
Content type: text/plain
Description: Documentation
Class: Expert JS Camera Capture
Capture video and audio and save to files
Author: By
Last change: Update of examples/simple_selectmenu.html
Date: 2 months ago
Size: 1,191 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Demo</title>
    </head>
    <body>
        <hr>
        <h1 style="text-align:center;">Initialize with default options and build select menu</h1>
        <hr>
        <h4>Video:</h4>
        <select id="video"></select>
        <hr>
        <h4>Audio:</h4>
        <select id="audio"></select>
        <hr>
        <video></video>
        <hr>
        <button type="button" onclick="play()">play</button>
        <button type="button" onclick="pause()">pause</button>
        <button type="button" onclick="stop()">stop</button>
        <hr>
        <script type="text/javascript" src="../js/expertcam.js"></script>
        <script type="text/javascript">
        //path correction
        var args = {
        		noSignal: '../media/no_signal.png'
            };
            var cam = new ExpertCamJS('video').init(args).buildSelectMenu('#video', '#audio');
            function play(){
                cam.play();
            }
            function pause(){
                cam.pause();
            }
            function stop(){
                cam.stop();
            }
        </script>
    </body>
</html>