[geckoview] Make WebRTC work with GeckoView
Categories
(GeckoView :: General, defect, P2)
Tracking
(geckoview62 verified)
Tracking | Status | |
---|---|---|
geckoview62 | --- | verified |
People
(Reporter: nalexander, Assigned: snorp)
References
Details
(Whiteboard: [geckoview:crow][geckoview:klar])
Attachments
(1 file)
Right now, we have WebRTC in Fennec and not in GeckoView. See https://dxr.mozilla.org/mozilla-central/source/mobile/android/geckoview/build.gradle?q=path%3Ageckoview%2Fbuild.gradle&redirect_type=single#42. This ticket tracks moving that into GeckoView and figuring out what needs to be exposed to make it all work.
Assignee | ||
Comment 1•7 years ago
|
||
Kevin I think this should work, but do you wanna try it?
Comment 2•7 years ago
|
||
Does not work in Klar Geckoview or geckoview example on a Pixel 2 XL.
Updated•7 years ago
|
Assignee | ||
Comment 3•7 years ago
|
||
Yeah, a simple GUM test[0] is not working here, at least with e10s. First I get a crash, but then after fixing that I have: 04-30 14:36:45.550 4931 4950 I Gecko : [Child 4931, Main Thread] ###!!! ASSERTION: Cannot perform action in content process!: 'Error', file /home/snorp/source/gecko/extensions/cookie/nsPermissionManager.cpp, line 1696 04-30 14:36:45.551 4931 4950 E Web Content: [JavaScript Error: "Media device error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIPermissionManager.add]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: jar:jar:file:///data/app/org.mozilla.geckoview_example-fyeXVGIZjHvl59jv5JqgxQ==/base.apk!/assets/omni.ja!/components/GeckoViewPermission.js :: handleMediaRequest/</< :: line 131" data: no]" {file: "jar:jar:file:///data/app/org.mozilla.geckoview_example-fyeXVGIZjHvl59jv5JqgxQ==/base.apk!/assets/omni.ja!/components/GeckoViewPermission.js" line: 147}] 04-30 14:36:45.551 4931 4950 E Web Content: handleMediaRequest/<@jar:jar:file:///data/app/org.mozilla.geckoview_example-fyeXVGIZjHvl59jv5JqgxQ==/base.apk!/assets/omni.ja!/components/GeckoViewPermission.js:147:7 So it looks like the permissions stuff needs split up into parent/child bits. Jim can you take a look? [0] https://webrtc.github.io/samples/src/content/getusermedia/gum/
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
The attached patch fixes it for non-e10s. I'll move the e10s bit over to bug 1458020.
Comment hidden (mozreview-request) |
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8972118 [details] Bug 1316241 - Fix media prompts with GeckoView https://reviewboard.mozilla.org/r/240830/#review247360
Pushed by jwillcox@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3550cb0d54d4 Fix media prompts with GeckoView r=esawin
Assignee | ||
Updated•7 years ago
|
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3550cb0d54d4
Comment 10•6 years ago
|
||
> Keywords: leave-open
James, does WebRTC work in GV 62? Why did you tag this bug as leave-open when landing your media prompts fix in May?
Assignee | ||
Comment 11•6 years ago
|
||
It seems to be working in 62, yeah. I can't remember why I marked it leave-open. I guess because of the e10s case?
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 12•5 years ago
|
||
Problem is not solved in: geckoview:73.0.20200211134023
.
I get this error:
Error getting user media: The request is not allowed by the user agent or the platform in the current context. getUserMedia error: Failed to get access to local media. Error name was NotAllowedError. Continuing without sending a stream.
Assignee | ||
Comment 13•5 years ago
|
||
(In reply to contact from comment #12)
Problem is not solved in:
geckoview:73.0.20200211134023
.I get this error:
Error getting user media: The request is not allowed by the user agent or the platform in the current context. getUserMedia error: Failed to get access to local media. Error name was NotAllowedError. Continuing without sending a stream.
It looks like maybe you didn't respond to the content permission prompt? WebRTC does work in Fenix, so I don't think GeckoView has a general problem here.
Description
•