Communication
Communication copied to clipboard
[Android] Switching video source for video stream is not stable
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:
- Start a call
- Execute videoStream.switchSource(desiredCamera)
- 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
@jsaurezlee-msft Hi, I have the same problem. Do you have any updates on this issue?