Communication icon indicating copy to clipboard operation
Communication copied to clipboard

[Android] Switching video source for video stream is not stable

Open pavelprystinka opened this issue 3 years ago • 2 comments

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

pavelprystinka avatar Sep 13 '21 16:09 pavelprystinka

AB#2581184

jsaurezlee-msft avatar Sep 14 '21 00:09 jsaurezlee-msft

@jsaurezlee-msft Hi, I have the same problem. Do you have any updates on this issue?

koudaiii avatar Jan 18 '22 01:01 koudaiii