Hi,Yes you can attach a stream from chrome.tabCapture (you need to do this from an extension and provide the tab id of the tab you want to capture) into an active peerconnection, just stop and remove the current stream then attach the tabCapture stream.Api details here.
Did a quick search and found this github repo, I've not tried it myself but you could take a look and see if it has any useful info.
/Chris
On Tuesday, June 30, 2015 at 10:16:41 AM UTC+2, pablo wrote:Hi,
Is it possible to share a MediaStream captured with chrome.tabCapture with another tab?
My use case is a meeting session in a chrome tab (peer connection).
The user will click a button in the meeting to 'share a browser tab'.
Chrome will open a new tab, create a media stream with chrome.tabCapture and pass it to the meeting tab.
The meeting tab will add the media stream to the meeting peer connection.
Thanks
--
---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/c2846f93-5a87-406b-b27f-ffb8b6d2ec9f%40googlegroups.com.
On Thu, Jul 2, 2015 at 4:11 PM, Christoffer Jansson <jan...@google.com> wrote:Hi,Yes you can attach a stream from chrome.tabCapture (you need to do this from an extension and provide the tab id of the tab you want to capture) into an active peerconnection, just stop and remove the current stream then attach the tabCapture stream.Api details here.I have two tabs:Meeting tab.Captured tab (will be created when needed).I want to click a button in the meeting tab, create the captured tab and capture it.Is it possible?
Did a quick search and found this github repo, I've not tried it myself but you could take a look and see if it has any useful info.In this example, you click a browser button while the tab you want to share is active. I want to start sharing from another tab./Chris
On Tuesday, June 30, 2015 at 10:16:41 AM UTC+2, pablo wrote:Hi,
Is it possible to share a MediaStream captured with chrome.tabCapture with another tab?
My use case is a meeting session in a chrome tab (peer connection).
The user will click a button in the meeting to 'share a browser tab'.
Chrome will open a new tab, create a media stream with chrome.tabCapture and pass it to the meeting tab.
The meeting tab will add the media stream to the meeting peer connection.
Thanks--
---
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.To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/c2846f93-5a87-406b-b27f-ffb8b6d2ec9f%40googlegroups.com.--
---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CANdLC8UfTvbMWUwvwAnTmfguxZCfMUYuJTO_suOp51kkP%2BdRgA%40mail.gmail.com.
On Thu, Jul 2, 2015 at 3:22 PM pablo platt <pablo...@gmail.com> wrote:On Thu, Jul 2, 2015 at 4:11 PM, Christoffer Jansson <jan...@google.com> wrote:Hi,Yes you can attach a stream from chrome.tabCapture (you need to do this from an extension and provide the tab id of the tab you want to capture) into an active peerconnection, just stop and remove the current stream then attach the tabCapture stream.Api details here.I have two tabs:Meeting tab.Captured tab (will be created when needed).I want to click a button in the meeting tab, create the captured tab and capture it.Is it possible?Yes it is as I mentioned you start the capture FROM the meeting tab in your example and provide the tab ID of the tab you want to capture, Captured tab in your case, the meeting tab will have access to both the mediaStream and the peerconnection object.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAAdOTUPBeXZJJhG8bUzEnWwLMbxHW5bZC4NMQSHLL2eF3zz-tQ%40mail.gmail.com.
On Thu, Jul 2, 2015 at 4:46 PM, 'Christoffer Jansson' via discuss-webrtc <discuss...@googlegroups.com> wrote:On Thu, Jul 2, 2015 at 3:22 PM pablo platt <pablo...@gmail.com> wrote:On Thu, Jul 2, 2015 at 4:11 PM, Christoffer Jansson <jan...@google.com> wrote:Hi,Yes you can attach a stream from chrome.tabCapture (you need to do this from an extension and provide the tab id of the tab you want to capture) into an active peerconnection, just stop and remove the current stream then attach the tabCapture stream.Api details here.I have two tabs:Meeting tab.Captured tab (will be created when needed).I want to click a button in the meeting tab, create the captured tab and capture it.Is it possible?Yes it is as I mentioned you start the capture FROM the meeting tab in your example and provide the tab ID of the tab you want to capture, Captured tab in your case, the meeting tab will have access to both the mediaStream and the peerconnection object.
From the docs it's not clear what tab I'm able to capture.
Doesn't the activeTab permission mean that the capture has to be started by a user action from the Captured tab?
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CANdLC8UqdKQJT6j8Vvi7NzxBf82Csx1n1Bfbt-iDYTWSZCLC5A%40mail.gmail.com.
On Thu, Jul 2, 2015 at 4:07 PM pablo platt <pablo...@gmail.com> wrote:On Thu, Jul 2, 2015 at 4:46 PM, 'Christoffer Jansson' via discuss-webrtc <discuss...@googlegroups.com> wrote:On Thu, Jul 2, 2015 at 3:22 PM pablo platt <pablo...@gmail.com> wrote:On Thu, Jul 2, 2015 at 4:11 PM, Christoffer Jansson <jan...@google.com> wrote:Hi,Yes you can attach a stream from chrome.tabCapture (you need to do this from an extension and provide the tab id of the tab you want to capture) into an active peerconnection, just stop and remove the current stream then attach the tabCapture stream.Api details here.I have two tabs:Meeting tab.Captured tab (will be created when needed).I want to click a button in the meeting tab, create the captured tab and capture it.Is it possible?Yes it is as I mentioned you start the capture FROM the meeting tab in your example and provide the tab ID of the tab you want to capture, Captured tab in your case, the meeting tab will have access to both the mediaStream and the peerconnection object.
From the docs it's not clear what tab I'm able to capture.
Doesn't the activeTab permission mean that the capture has to be started by a user action from the Captured tab?Maybe you could try it out?
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAAdOTUM%3D8TFKDgwR-1jGswEo%3D5gFNcnC4EwRjZ-3fKwgptzqxQ%40mail.gmail.com.
On Thu, Jul 2, 2015 at 5:26 PM, 'Christoffer Jansson' via discuss-webrtc <discuss...@googlegroups.com> wrote:On Thu, Jul 2, 2015 at 4:07 PM pablo platt <pablo...@gmail.com> wrote:On Thu, Jul 2, 2015 at 4:46 PM, 'Christoffer Jansson' via discuss-webrtc <discuss...@googlegroups.com> wrote:On Thu, Jul 2, 2015 at 3:22 PM pablo platt <pablo...@gmail.com> wrote:On Thu, Jul 2, 2015 at 4:11 PM, Christoffer Jansson <jan...@google.com> wrote:Hi,Yes you can attach a stream from chrome.tabCapture (you need to do this from an extension and provide the tab id of the tab you want to capture) into an active peerconnection, just stop and remove the current stream then attach the tabCapture stream.Api details here.I have two tabs:Meeting tab.Captured tab (will be created when needed).I want to click a button in the meeting tab, create the captured tab and capture it.Is it possible?Yes it is as I mentioned you start the capture FROM the meeting tab in your example and provide the tab ID of the tab you want to capture, Captured tab in your case, the meeting tab will have access to both the mediaStream and the peerconnection object.
From the docs it's not clear what tab I'm able to capture.
Doesn't the activeTab permission mean that the capture has to be started by a user action from the Captured tab?Maybe you could try it out?I can and I will but even if it'll work, it might be a security risk.If an extension can open a tab with arbitrary URL with sensitive info and share it just by clicking on a button in another tab, it might be a problem.That's the reason I'm trying to understand the docs and what should be possible before investing time in doing stuff that is possible by accident and will be changed sooner or later.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CANdLC8Wa96DdJUUOgpiY_D8cLNj8Jy%2Bckgczuyd5MQr3aQog0Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAAdOTUOtw%2B2LnexFVbV91Q5cjO02Tk9WnEom3%3DrMNav_yn6mkw%40mail.gmail.com.
--
TJ Singleton
t...@clearslide.com
--
---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/BC3D9695-2CBA-4F71-BE78-172AD52E7B15%40clearslide.com.