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/power-monitor/actions.js

38 lines
654 B

// @flow
import { Transport } from '../../../modules/transport';
import {
SET_TRANSPORT,
SUSPEND_DETECTED
} from './actionTypes';
/**
* Signals that suspend was detected.
*
* @public
* @returns {{
* type: SUSPEND_DETECTED
* }}
*/
export function suspendDetected() {
return {
type: SUSPEND_DETECTED
};
}
/**
* Signals setting of a transport.
*
* @param {Transport} transport - The transport to save in the state.
* @returns {{
* transport: Transport,
* type: string
* }}
*/
export function setTransport(transport: ?Transport) {
return {
type: SET_TRANSPORT,
transport
};
}