Hi I tried below getUserMedia API to capture the android screen,But Its not working any help ?
const constraints = {
audio: false, // mandatory.
video: {'mandatory': {'chromeMediaSource':'screen'}}
};
const successCallback = (stream) => {
var video = document.querySelector('video');
video.srcObject = stream;
video.onloadedmetadata = function(e) {
video.play();
};
};
const errorCallback = (error) => {
// We don't have access to the API
console.log("sadd"+error);
};
navigator.getUserMedia(constraints, successCallback, errorCallback);
I am getting the error Requested device not found
from How to capture the screen through Cordova application?
No comments:
Post a Comment