Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

Create LocalStream Failed on running p2p 3.5.1 sample

Chen__Eric
Beginner
513 Views

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!

0 Kudos
2 Replies
YanbinZ_Intel
Employee
513 Views

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
Chen__Eric
Beginner
513 Views

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
Reply