New issue
Advanced search Search tips

Issue 650231 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Getusermedia call across multiple application causing resource release issues.

Reported by mr.shyam...@gmail.com, Sep 26 2016

Issue description

Example URL:

Steps to reproduce the problem:
1.Call getusermedia from two applications simultaneously.
2.Both application got permission and stream object.
3.Now release the acquired stream from each application.

Code to release :-

tracks = stream.getTracks();
for (i = 0, len = tracks.length; i < len; i += 1) {
	tracks[i].stop();
}

Observed behavior-
 Other native application [audio recorder, video recorder] show device in call cannot access mic

What is the expected behavior?
Other application should be able to access mic after release.

What went wrong?
Release of media tracks after simultaneous getusermedia success to two different application not updating states properly.  

Did this work before? N/A 

Is it a problem with Flash or HTML5? N/A

Does this work in other browsers? N/A 

Chrome version: 53.0.2785.116  Channel: stable
OS Version: 5.0
Flash Version:
 
Components: -Internals>Media Blink>GetUserMedia
Cc: hta@chromium.org
hta: can you do further triage?
Hi , Any update on this?

Comment 4 by hta@chromium.org, Oct 27 2016

Offhand, this sounds like a webrtc-level bug.
More info that would help us to assign it correctly:

- Which OS?
- Is release working correctly if only one application uses the camera?
- Is it happening for audio, video or both?

Thanks!
Os:- Android 5.0
Chrome version: 53.0.2785.116  Channel: stable

If only one application get the success, release working properly.

Using only Audio.




Components: Blink>WebRTC>Video
Components: -Blink>WebRTC>Video Blink>WebRTC>Audio
Cc: -hta@chromium.org
Owner: hta@chromium.org
Status: Assigned (was: Unconfirmed)
hta: Since the reporter provided the requested information, could you have another look?

Comment 10 by hta@chromium.org, Jan 4 2017

Cc: grunell@chromium.org
@grunell do you have capacity to try to reproduce this?
I don't have an Android environment here.

Sorry, I don't have an Android environment.
Cc: henrika@chromium.org
@henrika, you've been looking into mic conflicts on Android lately - any ideas?
@mr.shyamsathyan@gmail.com: what is meant by "two applications" in this context?

It sounds odd to me that two different applications both can access the microphone on Android. AFAIK, it should not be possible and only one application at a time can use the microphone.

Is it only an issue on Chrome on Android?

Finally, could you provide some code snippet that shows the complete issue using e.g. https://jsfiddle.net/ so that it is easier to reproduce the problem.
Cc: braveyao@chromium.org
braveyao@: you have done work on WebRTC in Chrome on Android.
Given an improved test page and some more details, perhaps you have time to reproduce this issue?
Same question: how to call getusermedia from two applications simultaneously on Android 5.0?
The second request to access mic should fail. If I keep audio call in Chrome Stable and try to start another audio call in Chrome Dev, then I'll get:

01-12 14:53:51.009   206 29158 E APM::AudioPolicyManager: startInput(3085) failed: other input 3053 already started
01-12 14:53:51.009 12726 14535 E AudioRecord: start() status -38
01-12 14:53:51.010 12726 14535 E cr_media: read failed: 0
01-12 14:53:51.010 12726 14535 E cr_media: read failed: 0

PS: why I can't find the codes for track.stop()in WebKit/Source/modules/mediastream/MediaStreamTrack.cpp? Wrong place?

Comment 16 by hta@chromium.org, Apr 5 2017

Owner: guidou@chromium.org
[Re-triage] Guido, what's the status? Is this still valid?

Comment 18 Deleted

I tried to reproduce this using https://jsfiddle.net/guidou/6tnhz4oc/6/ and noticed that calling gUM() on a second tab succeeds, but the track does not contain any audio. The bug is that gUM() should fail in this case with NotReadableError.
Will look into it later.

Comment 20 by remusneg...@gmail.com, Yesterday (40 hours ago)

I've opened a bug about gUM() succeeding in a second tab (https://bugs.chromium.org/p/chromium/issues/detail?id=924115) but not getting any audio/video data

Sign in to add a comment