TypeError: _reactNativeWebrtc.mediaDevices.getDisplayMedia is not a function

Trying to do screen sharing in android. GetUserMedia is working. But When I am trying with getDisplayMedia. I am getting this error.

TypeError: _reactNativeWebrtc.mediaDevices.getDisplayMedia is not a function.

version 1.9.2
Running on Android Emulator
Windows 10

1 Like

dear, did you fix it? if it’s working, can you share infomation about this. tks

Surprisingly old post.
Either way shouldn’t be an issue.

Try doing a clean build and ensure you are running the latest RN WebRTC Module version.
After that if you still have the issue then we can investigate but we would need a lot more information.