tabCapture road map

610 views
Skip to first unread message

Enda Mannion

unread,
Aug 1, 2014, 6:55:14 AM8/1/14
to discuss...@googlegroups.com
Hi,

From playing with chrome.tabCapture.capture   I notice that it does not work in a packaged app only in an extension.  

But I also noticed that audio and video (camera) capture does not work in an extension, see this error, when I install the extension,  this is where I specify "videoCapture", "audioCapture" in the manifest.json

There were warnings when trying to install this extension:
  • 'audioCapture' is only allowed for packaged apps, but this is a extension.
  • 'videoCapture' is only allowed for packaged apps, but this is a extension.


How do I do tabCapture and also audio and camera video capture together.   Or will tabCapture be available to packaged apps in time?


Thanks
-Enda

bryand...@gmail.com

unread,
Aug 1, 2014, 12:23:19 PM8/1/14
to discuss...@googlegroups.com
The desktop capture api also works to capture tabs, and is available to apps:



--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Enda Mannion

unread,
Aug 5, 2014, 5:54:16 AM8/5/14
to discuss...@googlegroups.com
So I had been using that API successfully for screen and window capture like this:

pending_request_id = chrome.desktopCapture.chooseDesktopMedia(  ["screen", "window"], onAccessApproved);

but when I change it to this, the picker window does not appear anymore. And there is a null stream Id in the callback function.

pending_request_id = chrome.desktopCapture.chooseDesktopMedia(  ["tab"], onAccessApproved);

Any idea why I can not do tab capture?

Thanks.
Enda

pablo

unread,
Aug 5, 2014, 10:17:46 AM8/5/14
to discuss...@googlegroups.com
@Enda
I have the same issue.

When you go to chrome://extensions/ you can click on Inspect views: background page to open a window that has a console tab.
When calling chrome.desktopCapture.chooseDesktopMedia you'll get an error message:
Unchecked runtime.lastError while running desktopCapture.chooseDesktopMedia: Tab capture is not supported yet.

Not sure if tab capture is expected to work or not.

There is chrome.tabCapture so it should be able to work with chooseDesktopMedia as well
https://developer.chrome.com/extensions/tabCapture

Enda Mannion

unread,
Aug 6, 2014, 5:45:51 AM8/6/14
to discuss...@googlegroups.com
pablo,  you are right, I see that error,  here it is:


  1. Unchecked runtime.lastError while running desktopCapture.chooseDesktopMedia: Tab capture is not supported yet. at HTMLButtonElement.<anonymous> (chrome-extension://pdjglfdofdndmehhjokoejnokpfdnbml/app.js:64:46)


Anyone know why chrome.desktopCapture.chooseDesktopMedia is not working for tabs, or it is actually NOT supported?

I have Version 36.0.1985.125

-Enda

dignjatic

unread,
Sep 1, 2014, 5:09:30 AM9/1/14
to discuss...@googlegroups.com
It doesn't even work in Canary (so 39 stream). Google is really behind on this one. 

Alexandre GOUAILLARD

unread,
Sep 1, 2014, 6:02:20 AM9/1/14
to discuss...@googlegroups.com
pablo, did you manage to test tab capture extension? I'm interested in the result.

Alex.
--
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
CTO - Temasys Communications, S'pore / Mountain View
President - CoSMo Software, Cambridge, MA
------------------------------------------------------------------------------------

pablo platt

unread,
Sep 3, 2014, 2:20:35 AM9/3/14
to discuss...@googlegroups.com
Alexandre, tab capture doesn't work with chooseDesktopMedia.
I didn't test tabCapture because it will really complicate my UI.
Hopefully, they'll add tab capture to chooseDesktopMedia and make the UI for choosing screen/window/tab clearer.

Alexandre GOUAILLARD

unread,
Sep 3, 2014, 4:18:43 AM9/3/14
to discuss...@googlegroups.com
ok, thanks for the feedback.

Alexandre GOUAILLARD

unread,
Sep 3, 2014, 10:17:37 AM9/3/14
to discuss...@googlegroups.com
Looks like it should work:

You might want to fork their code in github and try. Both extension APIs seem to be compatible with GUM format, so a shim should deb easy.

Disclaimer: I have not tried myself.

pablo platt

unread,
Sep 3, 2014, 10:25:46 AM9/3/14
to discuss...@googlegroups.com
This didn't work the last time I tested:
chrome.desktopCapture.chooseDesktopMedia(["screen", "window", "tab"], function(){});

This should work:
var captureOptions = { audio : true, video : true }; chrome.tabCapture.capture(captureOptions, function(){});

Enda Mannion

unread,
Jan 12, 2015, 8:19:34 AM1/12/15
to discuss...@googlegroups.com
Can I still assume tab capture is not working by this method? 

chrome.desktopCapture.chooseDesktopMedia(["tab"], function(){});

If it is still not working which seems to be the case for me, what is the recommended way of selecting a chrome tab to share.

as chrome.tabCapture.capture will only share the currently active tab where the extension was invoked.

Is my best option to do a window share using chrome.desktopCapture.chooseDesktopMedia then select chrome and navigate to the tab I want to share?


Thanks.

Vikas

unread,
Jan 13, 2015, 7:47:23 PM1/13/15
to discuss...@googlegroups.com
Currently tab capture is not supported in chrome.desktopCapture.

/Vikas

dignjatic

unread,
Mar 13, 2015, 6:51:36 AM3/13/15
to discuss...@googlegroups.com
Any info on the roadmap and timing. The docs for the API claim "tab" should work but it doesn't. This is a major hinderance for my app as I have to take a completely different route and can't just send mediastream id to the page app but need to deal with setting up sessions from the extension.

Thanks in advance,
Dragan
Reply all
Reply to author
Forward
0 new messages