Communication icon indicating copy to clipboard operation
Communication copied to clipboard

[Android] API 21 to API 25, video frames are not loaded until user perform button click (UI refresh)

Open iaulakh opened this issue 3 years ago • 2 comments

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:

  1. Launch device or emulator with API 21 to 30
  2. Start call with one remote participant with video on
  3. Join call from each device individually (end call on first device before joining from second)
  4. 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

iaulakh avatar Aug 11 '21 04:08 iaulakh

AB#2542990

kagbakpem avatar Aug 11 '21 17:08 kagbakpem

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)

iaulakh avatar Aug 13 '21 21:08 iaulakh