aws / amazon-chime-sdk-js

A JavaScript client library for integrating multi-party communications powered by the Amazon Chime service.
Apache License 2.0
706 stars 477 forks source link

[Share screen] How to control share screen limited? #1595

Open mrnav90 opened 3 years ago

mrnav90 commented 3 years ago

Hi Chime SDK Team,

Currently, I know Chime SDK only allows share screen 2 times in every meeting. How can I disable the button that starts the share screen has limited? I saw AudioVideoObserver have event videoAvailabilityDidChange this event will receive when meeting room available 25 videos in meeting room so I can disable button Turn on Camera when video has limited. I hope ContentShareObserver also have same event like AudioVideoObserver then we can disable button share screen.

I also one question: How long until Chime SDK will allow share screen unlimited?

Many thanks.

simmkyu commented 3 years ago

Currently, I know Chime SDK only allows share screen 2 times in every meeting.

Yes, the Chime SDK for JavaScript allows up to two simultaneous screen shares in a single meeting. You can disable or enable screen sharing as many as you want.

How can I disable the button that starts the share screen has limited?

You can use the videoTileDidUpdate observer method to track how many screen shares are enabled. When you or another attendee enables screen sharing, you will receive the videoTileDidUpdate observer method with a video tile object. The video tile object has the isContent property.

https://github.com/aws/amazon-chime-sdk-js/blob/710e2bc1d76be115b86d4196363bafc471be9239/src/videotile/VideoTileState.ts#L23-L26

In the Chime SDK React Components Library, for example, uses the videoTileDidUpdate method to allow only one screen sharing at a time. Click here to see the example.

I also one question: How long until Chime SDK will allow share screen unlimited?

We don't have a near-term plan of supporting unlimited content sharing. We'll keep you informed once we have an update.

mrnav90 commented 3 years ago

Hi @simmkyu

You can use the videoTileDidUpdate observer method to track how many screen shares are enabled. When you or another attendee enables screen sharing, you will receive the videoTileDidUpdate observer method with a video tile object. The video tile object has the isContent property.

This is away check normal, it's mean Chime SDK do not support event for share screen limited? Could you help add this event to feature request?

Thanks

simmkyu commented 3 years ago

The current version of the Chime SDK for JavaScript (2.17.0) does not support the API on videoAvailabilityDidChange to tell whether the attendee can start screen sharing. I added this issue to the feature request column on our project board and will keep you posted once the API is available.

mrnav90 commented 3 years ago

@simmkyu OK, thank you so much, I hope see it soon >:D<