mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import { ConnectionFailedError } from '../base/connection/types';
|
|
import { openDialog } from '../base/dialog/actions';
|
|
import PageReloadDialog from '../base/dialog/components/native/PageReloadDialog';
|
|
|
|
|
|
/**
|
|
* Signals that the prompt for media permission is visible or not.
|
|
*
|
|
* @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.
|
|
* @public
|
|
* @returns {{
|
|
* type: MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED,
|
|
* browser: {string},
|
|
* isVisible: {boolean}
|
|
* }}
|
|
*/
|
|
export function mediaPermissionPromptVisibilityChanged(_isVisible: boolean, _browser: string) {
|
|
// Dummy.
|
|
}
|
|
|
|
/**
|
|
* Opens {@link PageReloadDialog}.
|
|
*
|
|
* @param {Error} conferenceError - The conference error that caused the reload.
|
|
* @param {Error} configError - The conference error that caused the reload.
|
|
* @param {Error} connectionError - The conference error that caused the reload.
|
|
* @returns {Function}
|
|
*/
|
|
export function openPageReloadDialog(
|
|
conferenceError?: Error, configError?: Error, connectionError?: ConnectionFailedError) {
|
|
return openDialog(PageReloadDialog, {
|
|
conferenceError,
|
|
configError,
|
|
connectionError
|
|
});
|
|
}
|