Trying to capture desktop image using getUserMedia and canvas
I am making an chrome extension through which I can get a screenshot of user's desktop. I am using chrome.desktopCapture API to get stream of selected window. I am creating video element dynamically. Once its source it set, I invoked the play() method. Then I created a canvas element and used it to draw an image of video. I am also able to get the dataURL using canvas.toDataURL() but when i open this url I see no image. And also this URL value remains same even during new capture. Manifest.json - { "name": "Desktop Capture Example", "description": "Show desktop media picker UI", "version": "1"