NavigatorUserMediaError: TrackStartError

I am using an application that I have made in the last month. It uses the getUserMedia () function for HTML5.

As of 2 days, without me doing something with the code, the camera stopped working. At first I decided, having received an additional camera, which I have, but which also stopped working.

The problem only occurs in Chrome and on several different computers, so I’m sure that this is not a problem.

Firefox works, but at the moment it does not suit me, because I have not yet developed support for multiple browsers.

Received error:

NavigatorUserMediaError constraintName: "" message: "" name: "TrackStartError" __proto__: NavigatorUserMediaError 

I have not made any code changes in recent days at all, so I was offered a mistake on my part.

I just use VIDEO and without sound, and my query looks something like this:

  navigator.getUserMedia({ video : { mandatory : { minWidth : 480, minHeight : 640, maxWidth : 480, maxHeight : 640 } } }, function(stream) { localMediaStream = stream; camSuccess(); }, errorCallback); 

the trick of width and height was to get the proportions I wanted ... and it was also functional.

I thank any help / suggestions to debug this ...

Greetings

+8
html5 getusermedia
source share
1 answer

(too few for comments)

Are there any updates? Stuck on the same issue. This only happens to me in my Ionic 3 app.

-one
source share

All Articles