How to enable right mouse button to display camera settings in scriptcam plugin?

Asked

Viewed 64 times

0

I’m using the plugin scriptcam to capture image by webcam, I am using 2 cameras and need to select the camera when necessary, the problem is that the right mouse button does not activate the flash camera settings as specified in macromedia line "How to display this panel again?", Can anyone tell me where I do this setting so that when I right-click the mouse display the options so I can choose the camera? because if I click allow and remember it no longer displays the choice option of the camera.

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/'
    });

Browser other questions tagged

You are not signed in. Login or sign up in order to post.