I am working on a webrtc screen sharing application. I have an extension which does the following :
desktopMediaRequestId = chrome.desktopCapture.chooseDesktopMedia(data_sources, tab, function(streamId) {
if (streamId) {
msg.type = 'SUCESS';
msg.streamId = streamId;
} else {
msg.type = 'FAILURE';
}
port.postMessage(msg);});
I can use this stream id to share the screen. But is there anyway I can get image-data with this stream id?