Skip to content

"How can I use it with audio?" #336

@madfortech

Description

@madfortech
<script>
    document.addEventListener("DOMContentLoaded", function() {
        Webcam.set({
            width: 300,
            height: 300,
            audio: true, 
	    });
        
        Webcam.attach( '#my_camera' );
         
    });
		
    function take_snapshot() {
        Webcam.snap( function(data_uri) {
            document.getElementById('my_result').innerHTML = '<img src="'+data_uri+'"/>';
        } );
    }
</script>

webcam is working." how i add audio any help ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions