getusermedia stream callback contains error
See original GitHub issuetrying to get started with webrtc, in getusermedia i get this error
09-09 12:40:58.527 1312 2578 I ReactNativeJS: 'getUserMedia success', { [TypeError: undefined is not an object (evaluating 'WebRTCModule.getUserMedia')]
my code
webrtc.getUserMedia({
audio: true,
video: {
mandatory: {
minWidth: 640, // Provide your own width, height and frame rate here
minHeight: 360,
minFrameRate: 30,
},
facingMode: (true ? "user" : "environment"),
}
}, function (stream) {
console.log('getUserMedia success', stream);
// callback(stream);
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
GetUserMedia Callback Undefined - Stack Overflow
getUserMedia, I am getting an error that the success callback function is undefined, and therefore not a function. It works when I add ......
Read more >Navigator.getUserMedia() - Web APIs | MDN
If permission is granted, a MediaStream whose video and/or audio tracks come from those devices is delivered to the specified success callback.
Read more >getUserMedia makes no callback on windows when it can't ...
Issue 1748: getUserMedia makes no callback on windows when it can't find any media input sources ; What steps will reproduce the problem?...
Read more >getUserMedia - What happens when there's missing media ...
This is illustrated in figure 2. object encapsulating the media streams requested by the developer; errorCallback (optional) – this is called ...
Read more >Getting started with media devices - WebRTC
console.error('Error accessing media devices. ... with a MediaStream containing one video and one audio track. ... callback(filtered);
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I reinstalled the whole android sdk and my issue solved !
Well then i’m not really sure what to say, not having the issues and can’t reproduce. It is as if you don’t have the package installed. What OS and Node version are you using?