Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner

Create LocalStream Failed on running p2p 3.5.1 sample

Hi there,

I got the following error running p2p 3.5.1 web sample on Chrome and firefox

Create LocalStream failed: {code:1100, msg: "NotFoundError"},

It sounds like that it could not find the camera device. But I am pretty sure I have a working PC camera, and I am able to play video from camera on the web page using the following codes.

if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
  navigator.mediaDevices.getUserMedia({video: true})
    .then(stream => {
      _video.srcObject = stream;
      _video.play();
    })
}

Any idea what I am missing? Any help will be appreciated.

Thank you!

Tags (2)
0 Kudos
2 Replies
Highlighted
Employee

Hi Eric 

Hi Eric 

   Please confirm you audio device can be found e.g microphone is works. In our sample code , audio is set as true, you can set audio:false if your audio device can not be found. 

 Woogeen.LocalStream.create({

    ........

    audio : true

})

 

0 Kudos
Highlighted
Beginner

Hi Yanbin,

Hi Yanbin,

Yes, that's exactly the problem. I do not have the audio device attached. I am able to play the video after the I set the audio to false.

This post can be closed.

Thank you for your help! 

Eric

 

0 Kudos