Chrome Extension captureStream

I'm developing chrome extension which makes the following: get access to the stream obtained from chrome.tabCapture.capture (when capturing video, let's ignore for now audio capture since it's not