New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 3 users

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment
link

Issue 815100: chrome.desktopCapture: No way to find out the user selected source type (i.e. screen, window, tab, etc)

Reported by mkhah...@gmail.com, Feb 23 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Steps to reproduce the problem:
check https://developer.chrome.com/extensions/desktopCapture#type-DesktopCaptureSourceType

What is the expected behavior?
You can pass array of source types to the chooseDesktopMedia() function but there is no way to discover what source the user has selected.

What went wrong?
Some times you need to know the shared screen source type to do more. For example when user shares the entire screen, then playing the stream in the same computer/browser causes image echo (picture in picture). I'm going to avoid this, that happens for entire screen only (but not for window/tab), by pausing the local video.

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 64.0.3282.186  Channel: stable
OS Version: 10.0
Flash Version: 

In Firefox this is not an issue since you can pass the source type programmatically.

The issue is some how related to: https://bugs.chromium.org/p/chromium/issues/detail?id=523902
 

Comment 1 by dtapu...@chromium.org, Feb 23 2018

Components: Platform>Extensions>API

Comment 2 by susan.boorgula@chromium.org, Feb 25 2018

Labels: Needs-Triage-M64

Comment 3 by viswa.karala@chromium.org, Feb 26 2018

Labels: Triaged-ET Needs-Feedback
Thanks for filing the issue!

@Reporter: Could you please share a sample test file/URL which helps us in triaging the issue in a better way. 

Thanks!

Comment 4 by mkhah...@gmail.com, Mar 5 2018

Running the following code opens up the screen sharing popup dialog and user can choose what he wants to share, the entire screen, application window or a chrome tab. But as you see there is no useful info in the callback function to figure it out what type of source user has chosen.

```
chrome.desktopCapture.chooseDesktopMedia(['screen', 'window', 'tab'], 
  sender.tab, (streamId) => {
   // no info about selected source type
  });
```
chrome-desktop-capture-dialog.png
35.3 KB View Download

Comment 5 by sheriffbot@chromium.org, Mar 5 2018

Project Member
Cc: viswa.karala@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by krajshree@chromium.org, May 15 2018

Labels: Needs-Feedback
Tested the issue on Win-10 using chrome latest stable #66.0.3359.170 as per comment #4. But unable to see any screen sharing popup dialog appearing upon running the following code:
chrome.desktopCapture.chooseDesktopMedia(['screen', 'window', 'tab'], 
  sender.tab, (streamId) => {
   // no info about selected source type
  });
mkhahani@ - Could you please provide any other sample file to test the issue from TE-end. This will help us in triaging the issue further.

Thanks...!!
815100.PNG
116 KB View Download

Comment 7 by mkhah...@gmail.com, May 17 2018

It's a Chrome extension API and can't be called inside a page. You may use one of the existing extensions to see it's behavior. Install the following extension: https://chrome.google.com/webstore/detail/nlipoenfbbikpbjkfpfillcgkoblgpmj

Then start capturing desktop by clicking on the extension button and choosing the "Capture desktop" from the popup menu. This will open a popup dialog with 2 options (can be 3 depending on the code: "Entire Screen", "Application Window" and "Chrome Tab"). Images are attached.
screen-capture-extension.png
12.7 KB View Download
screen-capture-popup.png
22.6 KB View Download

Comment 8 by sheriffbot@chromium.org, May 17 2018

Project Member
Cc: krajshree@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 9 by phanindra.mandapaka@chromium.org, May 18 2018

Cc: phanindra.mandapaka@chromium.org
Labels: Needs-Feedback
Unable to reproduce the issue on reported chrome version 64.0.3282.186 and latest stable 66.0.3359.181 using Windows 10 & 7,ubuntu 14.04 and Mac 10.13.1.
Steps
---------
1. Launched chrome and navigated to ""https://chrome.google.com/webstore/detail/nlipoenfbbikpbjkfpfillcgkoblgpmj"".
2. Enabled extension and clicked on ""capture desktop"".
3. Observed that popup contains with two tabs and observed in the tab two(Application Window) contains the information of the screens which are sharing. 
We were able to see the screen information in the second tab(Application Window). Attaching the screencast of the same.

@ Reporter: As we are unable to reproduce the issue from our end. Can you verify this issue with fresh profile that is not having any apps or reset all the flags.Let us know if we miss anything.

Thanks!
815100.mp4
1.3 MB View Download

Comment 10 by mkhah...@gmail.com, May 19 2018

I wonder is my description such terrible?!
It's a developer issue not user. Please read comment #4.

Comment 11 by sheriffbot@chromium.org, May 19 2018

Project Member
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 12 by krajshree@chromium.org, May 24 2018

Labels: TE-NeedsTriageHelp
As per comment #4, the issue seems to be out of TE-scope as it is related to coding. Hence, adding label TE-NeedsTriageHelp for further investigation from dev team.

Thanks...!!

Comment 13 by foolip@chromium.org, Sep 9

Labels: -Hotlist-Interop

Sign in to add a comment