how to activate the right mouse button to display the camera settings in plugin scriptcam?

0

I'm using the scriptcam plugin for webcam capture, I'm using 2 cameras and I need to select the camera when needed, the problem is that the right mouse button does not activate the camera's flash settings as specified in macromidia a> line " How to display this panel again? ", can someone tell me where I make this setting so that when I right-click I display the options so I can choose the camera? this is because if I click enable and remember it no longer displays the option to choose the camera.

    
asked by anonymous 11.03.2016 / 13:13

1 answer

0

The plugin itself offers a method to solve this problem:

function onWebcamReady(cameraNames,camera,microphoneNames,microphone,volume) {
    $.each(cameraNames, function(index, text) {
        $('#cameraNames').append( $('<option></option>').val(index).html(text) )
    }); 
    $('#cameraNames').val(camera);
}

<select id="cameraNames"></select>

$('#capiture-image').scriptcam({
        onWebcamReady:onWebcamReady,
        path:'/js/scriptcam/'
    });
    
15.03.2016 / 18:05