Skip to content

TypeError navigator.mediaDevices is undefined, at shimGetUserMedia #1022

@PavMel

Description

@PavMel

Please read first!

Please use discuss-webrtc for general technical discussions and questions.

  • I have provided steps to reproduce (e.g. a link to a jsfiddle)
  • I have provided browser name, version and adapter.js version
  • This issue only happens when adapter.js is used

Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed.

Versions affected

Browser name:
Chrome Version:75.0.3770 and others, probably spoofed

adapter.js
7.5.0

Description

TypeError navigator.mediaDevices is undefined
I using sentry for handling errors:
image

Steps to reproduce

Is happened on real traffic

Expected results

No errors

Actual results

TypeError navigator.mediaDevices is undefined
Script stopped working because import error

import adapter from "webrtc-adapter" 
import "detectrtc"                                 // <== other lib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions