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

Issue 733686 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jul 9
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

chrome.tabCapture and desktopCapture with tab selected doesn't capture audio

Reported by roeyco...@gmail.com, Jun 15 2017

Issue description

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

Steps to reproduce the problem:
1. run this code and choose tab with audio:
chrome.desktopCapture.chooseDesktopMedia(["screen", "window", "tab", "audio"], null, function(stream_id) {
	navigator.getUserMedia({
		audio: {
			mandatory: {
				chromeMediaSource: "desktop"
			}
		},
		video: {
			mandatory: {
				chromeMediaSource: "desktop",
				chromeMediaSourceId: stream_id
			}
		}
	}, function(e) {
		console.log('ok');
	}, function(e) {
		console.error("getUserMedia", e)
	})
});

What is the expected behavior?
the output stream should contain audio

What went wrong?
it doesn't.
replacing audio media source from "desktop" to "system" add the audio to the stream but then the is muted on the local pc.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 59.0.3071.86  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 26.0 r0

replacing chrome.desktopCapture.chooseDesktopMedia with chrome.tabCapture acts the same.
although there is a workaround for the chrome.tabCapture API:
https://stackoverflow.com/questions/28186671/audio-of-the-tab-disappear-while-capturing-tab-using-tabcapture-api
i'd like my users to be able to choose between desktop and and tab sharing.
 

Comment 1 by hdodda@chromium.org, Jun 16 2017

Cc: hdodda@chromium.org
Labels: Needs-Feedback
Tested the issue on windows 10 using chrome latest stable M59 #59.0.3071.104 and executed the given code in devtools>console and resulted in error .

Attached screenshot for reference.

@roeycohen-- Could you please check attached screenshot and please help us in providing the clear steps in reproducing the issue.

Thanks!
733686.JPG
43.9 KB View Download

Comment 2 by roeyco...@gmail.com, Jun 17 2017

hi, 

chrome.desktopCapture.chooseDesktopMedia is a feature of extensions...
https://developer.chrome.com/extensions/desktopCapture#method-chooseDesktopMedia

you should create a small extension, one of the scripts for debugging and enter the code...
Project Member

Comment 3 by sheriffbot@chromium.org, Jun 17 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "hdodda@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Could you please provide us a sample extension to test this issue?

That would help us in further triaging of the issue.

Thanks!!
Labels: Needs-Triage-M59

Comment 6 by roeyco...@gmail.com, Jun 20 2017

hi, 

as requested a sample extension for recording tab/screen.
also attaching to sample files i've recorded with it.

please note, that if there are no input devices connected, trying to record the screen with audio will cause a crash (i've opened another ticket about it here: https://bugs.chromium.org/p/chromium/issues/detail?id=733356)


tab_no_sound.webm
1.3 MB View Download
screen_with_sound.webm
298 KB View Download
test_ext.zip
38.9 KB Download
Project Member

Comment 7 by sheriffbot@chromium.org, Jun 20 2017

Cc: sandeepkumars@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sandeepkumars@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: brajkumar@chromium.org
Labels: Needs-Feedback
roeycohen@ Could you please confirm is this issue is similar to  bug 733356  ?


Comment 9 by roeyco...@gmail.com, Jun 21 2017

it's not the same.
 bug 733356  is about the extension crashing if there's no microphone connected.
this issue is about missing audio while trying to capture tab.
Project Member

Comment 10 by sheriffbot@chromium.org, Jun 21 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Tested this issue using reported version #59.0.3071.86 and latest stable #59.0.3071.109 on Win 10 and was unable to rpeoduce the issue as extension is getting crashed on clicking on it ( issue 733356 ).

Testd the issue using older version #58.0.3029.110 on Win 10 also and unable to reprodue the issue.

@Reproter: Could you please find the attached screen cast and let us know your observations for further triage.

Thanks!!
Jun 23 2017 2-25 AM.webm
943 KB View Download
hi, please make sure you have a microphone connected. Otherwise the extension will crash..
Project Member

Comment 13 by sheriffbot@chromium.org, Jun 23 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sandeepkumars@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Tested the issue on windows 10 using chrome stable M59 #59.0.3071.115 and followed below steps :

1. Plugged in the microphone into pc and launched chrome and opened the extension background page and also opened youtibe video playing with sound.
2. Pasted the given code in comment #0 into the console .
3. and started sharing/ capturing the tab with youtube , and was able to hear the sound from PC .

Attched screencast for reference.

@roeycohen-- Could you please check attached screencast and confirm if we have missed any steps in reproducing the issue .

@Could someone from WebShare team please look into this .

Thanks!
733686.mp4
4.8 MB View Download
hdodda, the sound should be missing from the created webm file not from your entire machine :)
Project Member

Comment 16 by sheriffbot@chromium.org, Jul 9 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "hdodda@chromium.org" to the cc list and removing "Needs-Feedback" label.

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

Comment 17 by sheriffbot@chromium.org, Jul 9

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

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

Sign in to add a comment