CaféX Critical Issue Bulletin 005 - Chrome 47 onwards will only allow getUserMedia() to be called over https.

Introduction

From Chrome 47 onwards, it will not be possible to call getUserMedia() via http. This is a restriction from Google where they insist on secure connections for the getUserMedia() method.

It is part of Google's wider drive to require secure origins for these existing features:

  • Device motion / orientation
  • EME
  • Fullscreen
  • Geolocation
  • getUserMedia()

Problem

When you log into your app via http your local preview fails with the error:

"Failed to get access to local media with error: [[object NavigatorUserMediaError] PermissionDeniedError]"

Resolution

Use https rather then http when accessing you app, e.g.

https://<yourserver>:8443/csdk-sample/login/

Have more questions? Submit a request

Comments

Powered by Zendesk