Browse Source

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

master
Saúl Ibarra Corretgé 8 years ago
parent
commit
f62288ae17
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      react/features/base/media/functions.js

+ 12
- 0
react/features/base/media/functions.js View File

17
             && (!waitForVideoStarted || videoTrack.videoStarted));
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
  * Checks if video is currently muted by the user authority.
33
  * Checks if video is currently muted by the user authority.
22
  *
34
  *

Loading…
Cancel
Save