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:
Leonard Kim
2018-07-23 15:42:57 -07:00
committed by virtuacoplenny
parent fd78203ff8
commit 4d3383c620
7 changed files with 63 additions and 50 deletions

View File

@@ -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
};
}