getUserMedia doesn't call success/failure callback nor any catchable error (with media.navigator.enabled == false)

RESOLVED WONTFIX

Status

()

P3
normal
RESOLVED WONTFIX
6 years ago
6 years ago

People

(Reporter: jean.claveau, Unassigned)

Tracking

17 Branch
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [getUserMedia] [blocking-gum-])

(Reporter)

Description

6 years ago
User Agent: Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20121129 Firefox/20.0
Build ID: 20121129074803

Steps to reproduce:

go there http://addyosmani.github.com/getUserMedia.js/face-detection-demo/index.html with firefox 17.




Actual results:

Nothing appends if the media.navigator.enabled is false (as by default). The flash fallback is not launched because 
try {
   getUserMedia(....)
} catch(e) {

}
never catch any error.


Expected results:

The flash fallback should have been launched.
(Reporter)

Updated

6 years ago
Summary: getUserMedia doesn't call success neither error callback neither an catchable error → getUserMedia doesn't call success neither error callback neither any catchable error

Comment 1

6 years ago
I have got the same problem since my update to Firefox 17.
On Firefox 16 it worked for me.

But it doesn't matter if I change the value of navigator.media.enabled. This feature is always disabled and no getUserMedia example page in the internet is working.

I have tested this on two computers:
1. Windows 7 x64
2. Windows XP x86

Always the same result after the update.

Updated

6 years ago
Component: Untriaged → WebRTC: Audio/Video
Product: Firefox → Core
QA Contact: jsmith
Hmm...the demo works in Chrome, but fails in Firefox. We do get the prompt to appear for permissions, but the camera stream doesn't render.
The demo needs to be updated; the current API consensus is for video.srcObject = stream (and mozilla has implemented it for now as video.mozSrcObject = stream).  This replaces our earlier experiment with video.src = stream.  We also support createObjectURL(stream) now, though we don't recommend it.
The issue remaining here is lack of error/exception when using it when it's preffed off.

Problems trying to use it when it's preffed off are non-blocking
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Summary: getUserMedia doesn't call success neither error callback neither any catchable error → getUserMedia doesn't call success/failure callback nor any catchable error (with media.navigator.enabled == false)
Whiteboard: [getUserMedia] [blocking-gum-]

Comment 5

6 years ago
I've tested it with mozSrcObject and I got a screenshot of myself.

But I found out, that Firefox doesn't support audio and video at the same time.

E. g.:
<script>
navigator.mozGetUserMedia({ video: true, audio: true }, function(stream) { alert("Success!"); }, function(e) { alert("Error: " + e); });
</script>

Returns with "Error: NOT_IMPLEMENTED" on FF18.
If I call mozGetUserMedia with either video or audio (but not both) then it works...
(In reply to David Gausmann from comment #5)
> navigator.mozGetUserMedia({ video: true, audio: true }, function(stream) {
> alert("Success!"); }, function(e) { alert("Error: " + e); });
> </script>
> 
> Returns with "Error: NOT_IMPLEMENTED" on FF18.

Right. You will have to use Firefox 20 which is currently on the Nightly channel. Not sure about Aurora.
We're preffed on by default on all channels now, so this is a WONTFIX.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.