feat(conference): add helper function to check for audio-only muted status
This commit is contained in:
parent
98aa0b6ad9
commit
f62288ae17
|
@ -17,6 +17,18 @@ export function shouldRenderVideoTrack(videoTrack, waitForVideoStarted) {
|
||||||
&& (!waitForVideoStarted || videoTrack.videoStarted));
|
&& (!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.
|
* Checks if video is currently muted by the user authority.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue