NetTalk Central

Author Topic: Webcam woes  (Read 3000 times)

Richard I

  • Sr. Member
  • ****
  • Posts: 381
    • View Profile
    • Email
Webcam woes
« on: May 29, 2019, 06:14:21 PM »
Hi All,
My webcam nettalk app problems continue
In Firefox the console is reporting this :

NT-Cam: Error getting stream NotAllowedError: The request is not allowed by the user agent or the platform in the current context.. Perhaps some other tab is already using the camera? jquery.nt-cam.js:132:15

and jquery.nt-cam.js returns this

​navigator.mediaDevices.getUserMedia(constraints)
            .then(function(stream){
                  _this.stream = stream;
                  _this.options.videoElement.srcObject = stream;
                  _this.options.videoElement.onloadedmetadata = function(e) {
                     _this.options.videoElement.play;
                  }   
               }).catch(function(err){
                  console.log('NT-Cam: Error getting stream ' + err + '. Perhaps some other tab is already using the camera?')
               })   
      } else {
         console.log('NT-Cam: getUserMedia() is not supported by your browser');
      }   
      return this;
   },


I can run the webcam successfully using IE 10
but the problem is the desire to run on  ipads!


Is there a fix for this yet ? as I have posted a similiar query some months ago...
The app is not running secure.

thanks
Regards,
Richard
NT 11.10

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: Webcam woes
« Reply #1 on: May 29, 2019, 10:18:16 PM »
Hi Richard,

there were some webcam updates in 11.08, so that's good and so I'm pretty confident that side is working. Your last line though is the clue;

>> The app is not running secure.

Most browsers _require_ that the site be HTTPS before they will tolerate use of the webcam or microphone.
see https://www.digicert.com/blog/https-only-features-in-browsers/

Given that it's trivial, and free, to make the server HTTPS instead of HTTP probably your best bet is to get this sorted out first, and then re-check the webcam issue.

(The other most common problem I see with Webcams when testing on my machine is that only one tab, in one browser, can access the webcam at a time. So when I'm cross-browser testing I need to make sure to close the webcam page on one browser before I can test the next one. That's caught me out a few times... <g>)

Cheers
Bruce

Richard I

  • Sr. Member
  • ****
  • Posts: 381
    • View Profile
    • Email
Re: Webcam woes
« Reply #2 on: May 29, 2019, 10:45:07 PM »
many thanks Bruce....