feat(conference): add helper function to check for audio-only muted status

This commit is contained in:
Saúl Ibarra Corretgé 2017-09-08 11:26:54 +02:00 committed by Lyubo Marinov
parent 98aa0b6ad9
commit f62288ae17
1 changed files with 12 additions and 0 deletions

View File

@ -17,6 +17,18 @@ export function shouldRenderVideoTrack(videoTrack, waitForVideoStarted) {
&& (!waitForVideoStarted || videoTrack.videoStarted));
}
/**
* Checks if video is currently muted by the audio-only authority.
*
* @param {Object} store - The redux store instance.
* @returns {boolean}
*/
export function isVideoMutedByAudioOnly({ getState }) {
return Boolean(
getState()['features/base/media'] // eslint-disable-line no-bitwise
.video.muted & VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY);
}
/**
* Checks if video is currently muted by the user authority.
*