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

Screen share not working as expected in Firefox and Safari

Open virajhk opened this issue 1 year ago • 4 comments

What happened and what did you expect to happen?

When a user tries to share screen on Firefox and Safari, the presenter sees that the screen is being shared, but the receiver doesn't see anything being presented. Presenter also sees the following error in console:

[ERROR] ChimeComponentLibraryReactDemo - error during state Connected with action FinishUpdating: TypeError: this.meetingSessionContext.videoCaptureAndEncodeParameter is undefined

Upon clicking stop sharing, nothing happens and the presenter's screen is stuck in sharing mode until the browser window is refreshed.

Attaching a video for reference:

https://github.com/aws/amazon-chime-sdk-js/assets/4435293/ad1c7bb4-1ff6-4311-a6b4-b8f87b905adb

Note: Screen sharing works perfectly in Chrome.

Have you reviewed our existing documentation?

Reproduction steps

Try sharing screen on Firefox/Safari and notice that the presenter is able to see that the screen is being shared, but the receiver doesn't see anything. Also, upon trying to stop sharing, notice that contentShareDidStop callback doesn't get triggered when it's added as an observer in audioVideo.addContentShareObserver.

Amazon Chime SDK for JavaScript version

3.17.0

What browsers are you seeing the problem on?

Firefox and Safari

Browser version

Firefox - 124.0.2 (64-bit), Safari - 17.2.1 (19617.1.17.11.12)

Meeting and Attendee ID Information.

No response

Browser console logs

[ERROR] ChimeComponentLibraryReactDemo - error during state Connected with action FinishUpdating: TypeError: this.meetingSessionContext.videoCaptureAndEncodeParameter is undefined

virajhk avatar Apr 04 '24 08:04 virajhk

+1

paulocastellano avatar Apr 04 '24 11:04 paulocastellano

Is this only in the React components library? Does this still reproduce with the latest SDKs? We have not been able to reproduce in the latest versions.

hensmi-amazon avatar Apr 16 '24 16:04 hensmi-amazon

Can you attach the full browser log to us or cut us a support ticket?

ltrung avatar Apr 16 '24 17:04 ltrung

We're seeing this issue with Firefox build 126. I found it was due to this screen share simulcasting (https://github.com/aws/amazon-chime-sdk-js/blob/main/src/audiovideocontroller/DefaultAudioVideoController.ts#L1140). When I removed this call meetingSession.audioVideo.enableSimulcastForContentShare(true) it fixed the issue on Firefox.

xd6 avatar May 20 '24 20:05 xd6

We don't officially support simulcast for camera or screen share on Firefox at this time. You should gate usage of that function with a check on the browser.

hensmi-amazon avatar May 28 '24 18:05 hensmi-amazon

Please reopen if the issue is not when using simulcast on firefox or safari.

hensmi-amazon avatar Jun 03 '24 18:06 hensmi-amazon