muaz-khan / RecordRTC

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
https://www.webrtc-experiment.com/RecordRTC/
MIT License
6.49k stars 1.75k forks source link

only works when using localhost and not on any server #771

Open Nidheeshv0312 opened 2 years ago

Nidheeshv0312 commented 2 years ago

Uncaught TypeError: navigator.getUserMedia is not a function onStartRecording http://192.168.1.199:8000/js/index.js:104 onload http://192.168.1.199:8000/js/index.js:119 EventHandlerNonNull* http://192.168.1.199:8000/js/index.js:116 index.js:104:15

createdbymahmood commented 2 years ago

I think you need to be in an HTTPS context to make that work

isaiahstjohn commented 2 years ago

Yes, you need to be in a secure context. See: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#security