[Android] Switching video source for video stream is not stable
- Dominant language
- No language data
- Stars
- 340
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Switching video source for video stream is not always works.
After calling videoStream.switchSource(desiredCamera) completable feature is completed successfully, but video is not switched and picture is frozen with last frame from the previous camera.
This behaviour is not always reproducible. In most cases it works as expected.
**To Reproduce**
Steps to reproduce the behavior:
1. Start a call
2. Execute videoStream.switchSource(desiredCamera)
3. Observe camera is not switched
Issues can be reproduced only in call and in about 25% calls to switchSource().
**Smartphone (please complete the following information):**
- Device: Nokia 2.4
- OS: Android 11
**Logs**
I have noticed that when I see this log:
2021-09-13 17:49:14.908 8688-8688/com.azure.android.communication.ui D/TextureView: getHardwareLayer, createNewSurface:false
2021-09-13 17:49:14.941 8688-8688/com.azure.android.communication.ui D/TextureView: getHardwareLayer, createNewSurface:false
issue is reproduced, but when I see this, everything works as expected:
2021-09-13 17:50:49.162 8688-8688/com.azure.android.communication.ui D/TextureView: getHardwareLayer, createNewSurface:false
2021-09-13 17:50:49.190 8688-8688/com.azure.android.communication.ui D/TextureView: getHardwareLayer, createNewSurface:true
call id a43ce379-4455-42ad-854a-ad40b91684d7
[Archive.zip](https://github.com/Azure/Communication/files/7155819/Archive.zip)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.