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:
,
Sep 29 2016
hta: can you do further triage?
,
Oct 27 2016
Hi , Any update on this?
,
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!
,
Nov 3 2016
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.
,
Dec 5 2016
,
Dec 5 2016
,
Dec 6 2016
Is it related to https://bugs.chromium.org/p/webrtc/issues/detail?id=6401 ?
,
Dec 21 2016
hta: Since the reporter provided the requested information, could you have another look?
,
Jan 4 2017
@grunell do you have capacity to try to reproduce this? I don't have an Android environment here.
,
Jan 11 2017
Sorry, I don't have an Android environment.
,
Jan 12 2017
@henrika, you've been looking into mic conflicts on Android lately - any ideas?
,
Jan 12 2017
@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.
,
Jan 12 2017
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?
,
Jan 12 2017
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?
,
Apr 5 2017
,
Feb 2 2018
[Re-triage] Guido, what's the status? Is this still valid?
,
Jun 25 2018
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.
,
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 |
|||||||||
Comment 1 by yini...@chromium.org
, Sep 27 2016