3

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?

jib
  • 40,579
  • 17
  • 100
  • 158
Anand Srinivasan
  • 450
  • 5
  • 20
  • [MediaRecorder](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder) should [do it](http://stackoverflow.com/a/36484696/918910). – jib Mar 31 '17 at 18:41
  • Possible duplicate of [WebRTC/WebSocket screen recording](http://stackoverflow.com/questions/35857134/webrtc-websocket-screen-recording) – jib Mar 31 '17 at 18:50

0 Answers0