constraints = {
video: true,
audio: true
};
Flashphoner.getMediaDevices(null, true, MEDIA_DEVICE_KIND.INPUT, {video: true, audio: false}).then(function (list) {
list.video.forEach(function (device) {
console.log("Camera found: " + device.id);
break;
});
}).catch(function (error) {
constraints.video = false;
});