mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-20 10:37:47 +00:00
ref(video-quality): rename receiveVideoQuality to preferredReceiverVideoQuality
- "preferred" is being appended because in tile view there is a concept of what the user prefers to be the maximum video quality but there is also a maximum respected internall. For example, the user may prefer HD, but in tile view the tiles may be small so internall the preferred would be set to LD. - "receive" is being renamed to "receiver" to be consistent with the naming in lib-jitsi-meet.
This commit is contained in:
committed by
virtuacoplenny
parent
fd78203ff8
commit
4d3383c620
@@ -33,7 +33,7 @@ type Props = {
|
||||
* The currently configured maximum quality resolution to be received from
|
||||
* remote participants.
|
||||
*/
|
||||
_receiveVideoQuality: number,
|
||||
_receiverVideoQuality: number,
|
||||
|
||||
/**
|
||||
* Callback to invoke when {@link OverflowMenuVideoQualityItem} is clicked.
|
||||
@@ -61,10 +61,10 @@ class OverflowMenuVideoQualityItem extends Component<Props> {
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
const { _audioOnly, _receiveVideoQuality } = this.props;
|
||||
const icon = _audioOnly || !_receiveVideoQuality
|
||||
const { _audioOnly, _receiverVideoQuality } = this.props;
|
||||
const icon = _audioOnly || !_receiverVideoQuality
|
||||
? 'icon-AUD'
|
||||
: VIDEO_QUALITY_TO_ICON[_receiveVideoQuality];
|
||||
: VIDEO_QUALITY_TO_ICON[_receiverVideoQuality];
|
||||
|
||||
return (
|
||||
<li
|
||||
@@ -91,14 +91,14 @@ class OverflowMenuVideoQualityItem extends Component<Props> {
|
||||
* @private
|
||||
* @returns {{
|
||||
* _audioOnly: boolean,
|
||||
* _receiveVideoQuality: number
|
||||
* _receiverVideoQuality: number
|
||||
* }}
|
||||
*/
|
||||
function _mapStateToProps(state) {
|
||||
return {
|
||||
_audioOnly: state['features/base/conference'].audioOnly,
|
||||
_receiveVideoQuality:
|
||||
state['features/base/conference'].receiveVideoQuality
|
||||
_receiverVideoQuality:
|
||||
state['features/base/conference'].preferredReceiverVideoQuality
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user