Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamed video not displayed in video grid #444

Closed
henlamk opened this issue Mar 4, 2021 · 5 comments
Closed

Streamed video not displayed in video grid #444

henlamk opened this issue Mar 4, 2021 · 5 comments
Labels
Bug Something isn't working Question Further information is requested

Comments

@henlamk
Copy link

henlamk commented Mar 4, 2021

Describe the bug
After starting sharing content via
await meetingManager.audioVideo?.startContentShare(mediaStream)
the video is displayed correctly in the video grid of the user playing the video.
Other participants only get a black screen where the video should be displayed.
However, the sound is being transmitted.

To Reproduce
Steps to reproduce the behavior:

  1. Join meeting with more than one user
  2. One user starts content share with video

Expected behavior
The video should be displayed in the other participant's video grids.

Desktop (please complete the following information):

  • OS: MacOS 11.0.1
  • Chrome (89.0.4), Firefox (86.0)
  • Chime react lib: 2.1.0, Chime SDK: 2.5.0
@henlamk henlamk added the Bug Something isn't working label Mar 4, 2021
@RidipDe
Copy link
Contributor

RidipDe commented Mar 5, 2021

Hi @henlamk,
Thanks for opening the issue.
Just to double check "Other participants only get a black screen where the video should be displayed." which browser is the participant who turned on the content share on and the participant viewing the black screen using?

You mentioned Chrome and Firefox. So is the issue in Chrome cross Firefox or it occurs in Chrome - Chrome and Firefox - Firefox as well?

Also, how frequently do you encounter the issue?

@RidipDe RidipDe added the Question Further information is requested label Mar 5, 2021
@henlamk
Copy link
Author

henlamk commented Mar 5, 2021

I have rechecked just to be sure, and it seems that

  • a video played from firefox is displayed perfectly on other browsers
  • a video played from chrome is only visible for the playing user himself

This behavior occurs every time.

Thanks for the quick response.

@RidipDe
Copy link
Contributor

RidipDe commented Mar 6, 2021

I tried to reproduce the issue at my end.

While screen sharing when using the Component Library worked fine in all the following combinations:

  • Chrome cross Firefox
  • Chrome cross Chrome
  • Firefox cross Firefox

However, I was able to repro a similar bug using custom media stream. The behavior seen below is expected in v88 and v89 of Chrome due to an existing bug. The workaround can also be found here.

Steps:

  1. User A joins from Firefox (v85)
  2. User B joins from Chrome (v88/89.)
  3. User A runs the following command in the browser console
const video = document.createElement('video');
video.src = 'https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.360p.vp9.webm';
await video.play();
mediaStream = video.mozCaptureStream();
await app.audioVideo?.startContentShare(mediaStream)

  1. User B on Chrome sees black screen on the content share video element and no sound is heard.

Can you please confirm if this is what you are observing too?


User A on Firefox:

Screen Shot 2021-03-05 at 4 10 51 PM

User B on Chrome:

Screen Shot 2021-03-05 at 4 11 05 PM

@ltrung
Copy link
Contributor

ltrung commented Mar 10, 2021

@henlamk This looks like the issue with Chrome 88+ that has been documented in JS SDK. Could you try disable hardware acceleration to see if it fixes the issue?

@henlamk
Copy link
Author

henlamk commented Mar 11, 2021

@RidipDe At the point of testing the setup you described it works as previously: playing a video from Firefox to other browsers works fine. The issue I encounter is the other way around, when a chrome user plays a video to other browsers.

@ltrung I have disabled the hardware acceleration and boy oh boy does it work now.

Thanks for looking into this, guys, much appreciated.

@ltrung ltrung closed this as completed Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants