# Switch camera not working in android mobiles

**URL:** <https://openvidu.discourse.group/t/switch-camera-not-working-in-android-mobiles/4558>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [April 21, 2023, 12:14pm UTC](https://openvidu.discourse.group/t/switch-camera-not-working-in-android-mobiles/4558 "2023-04-21T12:14:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean\_Taylor](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/sean_taylor/32/1314_2.png) [@Sean\_Taylor](https://openvidu.discourse.group/u/Sean_Taylor)\
**Post date:** [April 21, 2023, 12:14pm UTC](https://openvidu.discourse.group/t/switch-camera-not-working-in-android-mobiles/4558/1 "2023-04-21T12:14:55Z")

</div>

Hi team,

I am encountering a critical problem with Android mobile devices when using the latest version of Openvidu call (2.26.0). Specifically, I have tested this issue with Samsung mobiles and have consistently reproduced the problem.

The issue occurs on the switch camera code from the official documentation. While this code works correctly on Apple devices, it fails to function properly on Android devices. Specifically, when an Android user employs the switch camera feature, their video freezes. Additionally, other users attempting to view the Android user’s video will experience a disconnection of both the video and audio streams.

I am reaching out to the community for any guidance or solutions that may exist to resolve this issue. Additionally, please let me know if you require any further information to assist in finding a solution to this matter. Thank you for your attention to this matter.

Note : Used switch camera code from below link  
[https://docs.openvidu.io/en/stable/advanced-features/switch-camera/](https://docs.openvidu.io/en/stable/advanced-features/switch-camera/)

Thank you

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [April 25, 2023, 3:37pm UTC](https://openvidu.discourse.group/t/switch-camera-not-working-in-android-mobiles/4558/2 "2023-04-25T15:37:07Z")

</div>

Are you talking about React Native tutorial?

---

<div class="post-metadata">

**Author:** ![Sean\_Taylor](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/sean_taylor/32/1314_2.png) [@Sean\_Taylor](https://openvidu.discourse.group/u/Sean_Taylor)\
**Post date:** [April 27, 2023, 1:25pm UTC](https://openvidu.discourse.group/t/switch-camera-not-working-in-android-mobiles/4558/3 "2023-04-27T13:25:49Z")

</div>

No, I am using openvidu-call in my webapp. My webapp is responsive and work in all mobile devices.  
But trying to switch camera (front camera to back camera) during video call is not working in android devices. In apple devices switch camera is working fine.

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [May 4, 2023, 3:01pm UTC](https://openvidu.discourse.group/t/switch-camera-not-working-in-android-mobiles/4558/4 "2023-05-04T15:01:54Z")

</div>

I’ve fixed this issue on my end, There was a problem accessing the mediatrack for the second time. I’ve fixed this error and added it to the master branch. This will be included on the next release 2.28.0.

Thank you. Regards
