aws-samples / amazon-chime-react-native-demo

A React Native demo application for Android and iOS using the Amazon Chime SDK.
MIT No Attribution
101 stars 24 forks source link

Receive the leave attendee and a few log lines later we get an add video #135

Closed albrich-me closed 2 years ago

albrich-me commented 2 years ago

Describe the bug We are facing an issue with Android mostly and very intermittent on iOS, please note that we are using React Native.

(Guys, please keep me honest here) What’s happening is when an attendee leaves a meeting the attendee’s video tiles remains on the others screen and shows as blank—a blank video. The team traced it down and believe they found the culprit, I attached the details which we believe is causing the issue, and this issue correlates with the events below, whenever it happens.

Notice that we receive the leave attendee and a few log lines later we get an add video. Whenever this sequence occurs, we get the blank video issue. However, when the “add video” event does not occur after the leave attendee (only the “leave event” occurs) then everything works great.

Please advise.

image

To Reproduce Steps to reproduce the behavior:

Join a meeting with 3 or more participants Join with Android Leave the meeting on Android The meeting tile of the user that left stays on the screen as a blank tile.

Expected behavior A clear and concise description of what you expected to happen.

Logs If applicable, add logs from logcat to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Test environment Info (please complete the following information):

We are using the below version for Mobile (react-native)

Android—> amazon-chime-sdk-0.14.0 amazon-chime-sdk-media-0.14.0

iOS—-> AmazonChimeSDK-0.18.0 AmazonChimeSDKMedia-0.14.0

If you are reporting a crash:

Additional context Add any other context about the problem here.

alnlau commented 2 years ago

Hello,

What triggers add video for an attendee in your app? I didn't notice anything about enabling video in the reproduce steps.

If the Android attendee is enabling video between joining and leaving, could you also add log statements on the Android side for onAttendeesLeft and onVideoTileAdded? I'd be interested in seeing if there's an issue with the ordering for observer methods on the Android SDK side or if something happened to the order when bridging to the JS side.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.