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

**URL:** <https://react-native-webrtc.discourse.group/t/typeerror-reactnativewebrtc-mediadevices-getdisplaymedia-is-not-a-function/1333>\
**Category:** General\
**Created:** [August 17, 2021, 11:54am UTC](https://react-native-webrtc.discourse.group/t/typeerror-reactnativewebrtc-mediadevices-getdisplaymedia-is-not-a-function/1333 "2021-08-17T11:54:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishnakumarskr](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/krishnakumarskr/32/496_2.png) [@Krishnakumarskr](https://react-native-webrtc.discourse.group/u/Krishnakumarskr)\
**Post date:** [August 17, 2021, 11:54am UTC](https://react-native-webrtc.discourse.group/t/typeerror-reactnativewebrtc-mediadevices-getdisplaymedia-is-not-a-function/1333/1 "2021-08-17T11:54:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zhenguet](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/zhenguet/32/592_2.png) [@zhenguet](https://react-native-webrtc.discourse.group/u/zhenguet)\
**Post date:** [April 2, 2022, 12:37am UTC](https://react-native-webrtc.discourse.group/t/typeerror-reactnativewebrtc-mediadevices-getdisplaymedia-is-not-a-function/1333/2 "2022-04-02T00:37:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![8BallBomBom](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/8ballbombom/32/710_2.png) [@8BallBomBom](https://react-native-webrtc.discourse.group/u/8BallBomBom)\
**Post date:** [April 21, 2022, 5:30am UTC](https://react-native-webrtc.discourse.group/t/typeerror-reactnativewebrtc-mediadevices-getdisplaymedia-is-not-a-function/1333/3 "2022-04-21T05:30:33Z")

</div>

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.
