jiti-meet/react/features/overlay/actions.js

40 lines
920 B
JavaScript
Raw Normal View History

import {
2017-02-19 00:42:11 +00:00
MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED,
SUSPEND_DETECTED
} from './actionTypes';
/**
2017-02-19 00:42:11 +00:00
* Signals that the prompt for media permission is visible or not.
*
2017-02-19 00:42:11 +00:00
* @param {boolean} isVisible - If the value is true - the prompt for media
* permission is visible otherwise the value is false/undefined.
* @param {string} browser - The name of the current browser.
* @returns {{
2017-02-19 00:42:11 +00:00
* type: MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED,
* browser: {string},
* isVisible: {boolean}
* }}
* @public
*/
2017-02-19 00:42:11 +00:00
export function mediaPermissionPromptVisibilityChanged(isVisible, browser) {
return {
2017-02-19 00:42:11 +00:00
type: MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED,
browser,
isVisible
};
}
/**
2017-02-19 00:42:11 +00:00
* Signals that suspend was detected.
*
* @returns {{
2017-02-19 00:42:11 +00:00
* type: SUSPEND_DETECTED
* }}
* @public
*/
2017-02-19 00:42:11 +00:00
export function suspendDetected() {
return {
2017-02-19 00:42:11 +00:00
type: SUSPEND_DETECTED
};
}