streamproc / MediaStreamRecorder

Cross browser audio/video/screen recording. It supports Chrome, Firefox, Opera and Microsoft Edge. It even works on Android browsers. It follows latest MediaRecorder API standards and provides similar APIs.
https://www.webrtc-experiment.com/msr/
MIT License
2.62k stars 563 forks source link

Example of how to record the screen? #179

Closed anesuc closed 3 years ago

anesuc commented 3 years ago

Hi,

I saw this mentions it can record the screen, tabs etc but none of the examples demonstrate this. Any ideas of how to go about this? I tried navigator.mediaDevices.getDisplayMedia but it says:

TypeError: Failed to construct 'MediaRecorder': parameter 1 is not of type 'MediaStream'

Which doesn'y make sense as it should be of that type according to the documentation.

Thanks

anesuc commented 3 years ago

Nevermind, there was an error in my code haha