|
|
@@ -17,6 +17,18 @@ export function shouldRenderVideoTrack(videoTrack, waitForVideoStarted) {
|
|
17
|
17
|
&& (!waitForVideoStarted || videoTrack.videoStarted));
|
|
18
|
18
|
}
|
|
19
|
19
|
|
|
|
20
|
+/**
|
|
|
21
|
+ * Checks if video is currently muted by the audio-only authority.
|
|
|
22
|
+ *
|
|
|
23
|
+ * @param {Object} store - The redux store instance.
|
|
|
24
|
+ * @returns {boolean}
|
|
|
25
|
+ */
|
|
|
26
|
+export function isVideoMutedByAudioOnly({ getState }) {
|
|
|
27
|
+ return Boolean(
|
|
|
28
|
+ getState()['features/base/media'] // eslint-disable-line no-bitwise
|
|
|
29
|
+ .video.muted & VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY);
|
|
|
30
|
+}
|
|
|
31
|
+
|
|
20
|
32
|
/**
|
|
21
|
33
|
* Checks if video is currently muted by the user authority.
|
|
22
|
34
|
*
|