fix(connection-stats) Do not display max enabled resolution on SS tile.
This commit is contained in:
parent
99955df5c8
commit
b00a17c1c3
|
@ -637,7 +637,7 @@ class ConnectionStatsTable extends Component<IProps> {
|
||||||
* @returns {ReactElement}
|
* @returns {ReactElement}
|
||||||
*/
|
*/
|
||||||
_renderResolution() {
|
_renderResolution() {
|
||||||
const { resolution, maxEnabledResolution, t, videoSsrc } = this.props;
|
const { isVirtualScreenshareParticipant, maxEnabledResolution, resolution, t, videoSsrc } = this.props;
|
||||||
let resolutionString = 'N/A';
|
let resolutionString = 'N/A';
|
||||||
|
|
||||||
if (resolution && videoSsrc) {
|
if (resolution && videoSsrc) {
|
||||||
|
@ -646,7 +646,7 @@ class ConnectionStatsTable extends Component<IProps> {
|
||||||
if (width && height) {
|
if (width && height) {
|
||||||
resolutionString = `${width}x${height}`;
|
resolutionString = `${width}x${height}`;
|
||||||
|
|
||||||
if (maxEnabledResolution && maxEnabledResolution < 720) {
|
if (maxEnabledResolution && maxEnabledResolution < 720 && !isVirtualScreenshareParticipant) {
|
||||||
const maxEnabledResolutionTitle = t('connectionindicator.maxEnabledResolution');
|
const maxEnabledResolutionTitle = t('connectionindicator.maxEnabledResolution');
|
||||||
|
|
||||||
resolutionString += ` (${maxEnabledResolutionTitle} ${maxEnabledResolution}p)`;
|
resolutionString += ` (${maxEnabledResolutionTitle} ${maxEnabledResolution}p)`;
|
||||||
|
|
Loading…
Reference in New Issue