Skip to content

Commit

Permalink
fix(FEC-13556): Player v7 | Audio player "Quality" button doesn't loo…
Browse files Browse the repository at this point in the history
…k good.
  • Loading branch information
SivanA-Kaltura authored Jan 24, 2024
1 parent b615ac6 commit 1824853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/settings/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const mapStateToProps = state => ({
isMobile: state.shell.isMobile,
isSmallSize: state.shell.isSmallSize,
isLive: state.engine.isLive,
isAudio: state.engine.isAudio,
showQualityMenu: state.config.settings.showQualityMenu,
showAudioMenu: state.config.settings.showAudioMenu,
showCaptionsMenu: state.config.settings.showCaptionsMenu,
Expand Down Expand Up @@ -171,7 +172,7 @@ class Settings extends Component<any, any> {
const showAudioMenu = props.showAudioMenu && props.audioTracks.length > 1;
const showAdvancedAudioDescToggle = props.showAdvancedAudioDescToggle;
const showCaptionsMenu = props.showCaptionsMenu && props.textTracks.length > 1;
const showQualityMenu = props.showQualityMenu && props.videoTracks.length > 1;
const showQualityMenu = props.showQualityMenu && !props.isAudio && props.videoTracks.length > 1;
const showSpeedMenu = props.showSpeedMenu && props.player.playbackRates.length > 1 && !props.isLive;

if (!(showAudioMenu || showCaptionsMenu || showQualityMenu || showSpeedMenu)) return undefined;
Expand All @@ -194,8 +195,7 @@ class Settings extends Component<any, any> {
BadgeType[buttonBadgeType + 'Active'],
this.state.smartContainerOpen ? style.active : ''
].join(' ')}
onClick={this.onControlButtonClick}
>
onClick={this.onControlButtonClick}>
<Icon type={IconType.Settings} />
</Button>
</Tooltip>
Expand Down

0 comments on commit 1824853

Please sign in to comment.