mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 23:07:46 +00:00
* Add a checkbox for skipping the prejoin page on next use. (This is hidden for now, until we also have a settings entry for it). * Rework 'Join by Phone' buttons and add new overlay. * Update the device status accordingly if there were errors while adding devices. * The input is filled with the display name if there was one previously used. * Join the meeting on 'Enter' press.
65 lines
1.6 KiB
JavaScript
65 lines
1.6 KiB
JavaScript
// @flow
|
|
|
|
export * from './functions.any';
|
|
|
|
/**
|
|
* Returns the deviceId for the currently used camera.
|
|
*
|
|
* @param {Object} state - The state of the application.
|
|
* @returns {void}
|
|
*/
|
|
export function getCurrentCameraDeviceId(state: Object) {
|
|
return state['features/base/settings'].cameraDeviceId;
|
|
}
|
|
|
|
/**
|
|
* Returns the deviceId for the currently used microphone.
|
|
*
|
|
* @param {Object} state - The state of the application.
|
|
* @returns {void}
|
|
*/
|
|
export function getCurrentMicDeviceId(state: Object) {
|
|
return state['features/base/settings'].micDeviceId;
|
|
}
|
|
|
|
/**
|
|
* Returns the deviceId for the currently used speaker.
|
|
*
|
|
* @param {Object} state - The state of the application.
|
|
* @returns {void}
|
|
*/
|
|
export function getCurrentOutputDeviceId(state: Object) {
|
|
return state['features/base/settings'].audioOutputDeviceId;
|
|
}
|
|
|
|
/**
|
|
* Returns the saved display name.
|
|
*
|
|
* @param {Object} state - The state of the application.
|
|
* @returns {string}
|
|
*/
|
|
export function getDisplayName(state: Object): string {
|
|
return state['features/base/settings'].displayName || '';
|
|
}
|
|
|
|
|
|
/**
|
|
* Handles changes to the `disableCallIntegration` setting.
|
|
* Noop on web.
|
|
*
|
|
* @param {boolean} disabled - Whether call integration is disabled or not.
|
|
* @returns {void}
|
|
*/
|
|
export function handleCallIntegrationChange(disabled: boolean) { // eslint-disable-line no-unused-vars
|
|
}
|
|
|
|
/**
|
|
* Handles changes to the `disableCrashReporting` setting.
|
|
* Noop on web.
|
|
*
|
|
* @param {boolean} disabled - Whether crash reporting is disabled or not.
|
|
* @returns {void}
|
|
*/
|
|
export function handleCrashReportingChange(disabled: boolean) { // eslint-disable-line no-unused-vars
|
|
}
|