question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getusermedia stream callback contains error

See original GitHub issue

trying 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:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
moeinrahimicommented, Sep 12, 2018

I reinstalled the whole android sdk and my issue solved !

0reactions
8BallBomBomcommented, Sep 10, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found