Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jitsi-meet/react/features/web-hid/actions.ts

51 lines
1023 B

import { CLOSE_HID_DEVICE, INIT_DEVICE, REQUEST_HID_DEVICE, UPDATE_DEVICE } from './actionTypes';
import { IDeviceInfo } from './types';
/**
* Action used to init device.
*
* @param {IDeviceInfo} deviceInfo - Telephony device information.
* @returns {Object}
*/
export function initDeviceInfo(deviceInfo: IDeviceInfo) {
return {
type: INIT_DEVICE,
deviceInfo
};
}
/**
* Request hid device.
*
* @returns {Object}
*/
export function closeHidDevice() {
return {
type: CLOSE_HID_DEVICE
};
}
/**
* Request hid device.
*
* @param {IDeviceInfo} deviceInfo - Telephony device information.
* @returns {Object}
*/
export function requestHidDevice() {
return {
type: REQUEST_HID_DEVICE
};
}
/**
* Action used to init device.
*
* @param {IDeviceInfo} deviceInfo - Telephony device information.
* @returns {Object}
*/
export function updateDeviceInfo(deviceInfo: IDeviceInfo) {
return {
type: UPDATE_DEVICE,
updates: deviceInfo
};
}