# \_switchCamera() error

**URL:** <https://react-native-webrtc.discourse.group/t/switchcamera-error/121>\
**Category:** Uncategorized\
**Created:** [May 14, 2019, 8:54am UTC](https://react-native-webrtc.discourse.group/t/switchcamera-error/121 "2019-05-14T08:54:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hameez21](https://avatars.discourse-cdn.com/v4/letter/h/e47c2d/32.png) [@hameez21](https://react-native-webrtc.discourse.group/u/hameez21)\
**Post date:** [May 14, 2019, 8:54am UTC](https://react-native-webrtc.discourse.group/t/switchcamera-error/121/1 "2019-05-14T08:54:51Z")

</div>

when I use this function to switch camera my app crashes with an error E/ACodec: [OMX.Exynos.VP8.Encoder] ERROR(0x90000006) on adb…  
can any1 pls help me out  
another thing happening on different phone is when switching camera the video get stuck on remote device while the device locally shows the stream correctly
