amazon-chime-sdk-component-library-react icon indicating copy to clipboard operation
amazon-chime-sdk-component-library-react copied to clipboard

[FEATURE REQUEST] More flexible video quality selection

Open kaizau opened this issue 4 years ago • 0 comments

Community Note

  • Please do not add additional comments such as "+1" or "me too" to existing issues - instead please vote on the issue by adding a 👍 to the issue. The Amazon Chime SDK team will prioritize the request based on the number of 👍 the issue has received.
  • Please go through the existing issues to see if your request has already been recommended.
  • Please do not use this template to report bugs. This repository has an issue template for issues and documentation to help with your development.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Tell us about your request

What do you want us to build?

For amazon-chime-sdk-component-library-react

Tell us about the problem you are trying to solve and why is it hard?

useSelectVideoQuality

  • This hook only offers 3 hardcoded video qualities. To add a custom video quality, we need to implement our own hook and components from scratch.
  • Unlike other Chime hooks, this doesn't provide access to the currently selected state. A useVideoQuality hook that returns the current quality and a setter would be more flexible.

<QualitySelection>

  • This dropdown component is curiously detached from the state it represents. It doesn't allow setting a default video quality, nor does it pick up on changes set by useSelectVideoQuality.

How are you currently solving a problem?

By rolling our own quality selector on top of audioVideo.chooseVideoInputQuality(). Yet this seems like a common use case that should be handled by the UI library.

Additional context

n/a

kaizau avatar Nov 29 '21 07:11 kaizau