Communication
Communication copied to clipboard
[Android] API 21 to API 25, video frames are not loaded until user perform button click (UI refresh)
Describe the bug From API 26 to API 31 on call join if remote participant has video on then Android renders video properly. However, for devices with API 21 to 25, the video frames are not loaded on when video renderer view is loaded first time.
Video: video attached at https://skype.visualstudio.com/SPOOL/_workitems/edit/2542990
To Reproduce Steps to reproduce the behavior:
- Launch device or emulator with API 21 to 30
- Start call with one remote participant with video on
- Join call from each device individually (end call on first device before joining from second)
- Issue: API 21 to 25 does not load video when video render view is attached to UI (same code is used for all devices)
Desktop (please complete the following information):** com.azure.android:azure-communication-calling:1.2.0-beta.2
Smartphone (please complete the following information):
- Device: API from 21 to 31
The workaround on application side is to refresh UI after delay. If I reduce time then some video views will display or some not.
(container holding video views).postDelayed( {
(container holding video views).invalidate()
}, 5000)