amazon-chime-sdk-js icon indicating copy to clipboard operation
amazon-chime-sdk-js copied to clipboard

Remote video does not disappear if a remote attendee calls removeLocalVideoTile

Open simmkyu opened this issue 5 years ago • 2 comments

Important: Please attach INFO-level logs with timestamps to the report from before the session started up until the point at which the unexpected behavior occured. For multi-participant calls, attach a log file for each participant if possible.

No info-level log is available. When a remote attendee (UserB in the example below) disables the local video, SDK does not log any message in other attendees' sessions.

Describe the bug Describe the bug and the timestamp at which it happened relative to the timestamp in the log file.

Repro steps

  1. UserA joins the meeting.
  2. UserB joins the same meeting.
  3. UserB enables local video by calling meetingSession.audioVideo.startLocalVideoTile.
  4. In the UserA's page, the UserB's video appears.
  5. UserB disables local video by calling meetingSession.audioVideo.removeLocalVideoTile.
  6. In the UserA's page, the UserB's video freezes. AudioVideoObserver.videoTileWasRemoved does not get called.

Note that it works if UserB calls stopLocalVideoTile to turn the local video off.

Platform

  • OS: macOS 10.14.6
  • Browser: Chrome
  • Browser Version: 80.0.3987.163
  • Amazon Chime SDK GitHub Commit: 583125a702ec4b3fc295c9413aee80ea13c92265

simmkyu avatar Apr 23 '20 17:04 simmkyu

It looks like the meeting app should trigger a 'videoTileWasRemoved' event, but it doesn't, and therefore it doesnt call these two lines of code that should hide the video tile: https://github.com/aws/amazon-chime-sdk-js/blob/fc9652b5fdf31d8cd50b66058b0013df652832e5/demos/browser/app/meetingV2/meetingV2.ts#L1420-L1421

michhyun1 avatar Aug 20 '20 21:08 michhyun1

Reopen this issue as we reverted a fix. https://github.com/aws/amazon-chime-sdk-js/pull/731

simmkyu avatar Sep 28 '20 22:09 simmkyu