cloudapi
Version:
CLOUD API
45 lines (44 loc) • 1.02 kB
TypeScript
/**
* @interface sdpConstraintsType
* @param {number} offerToReceiveAudio
* @param {number} offerToReceiveVideo
*/
interface sdpConstraintsType {
offerToReceiveAudio: number;
offerToReceiveVideo: number;
voiceActivityDetection: boolean;
iceRestart: boolean;
}
/**
* @interface constraintsType
* @param {boolean} audio
* @param {boolean} video
*/
interface constraintsType {
audio: boolean;
video: boolean;
}
/**
* @interface dataChannelOptionsType
* @param {boolean} ordered
*/
interface dataChannelOptionsType {
ordered: boolean;
}
/**
* @interface rtcStateType
* @param {sdpConstraintsType} sdpConstraints
* @param {constraintsType} constraints
* @param {dataChannelOptionsType} dataChannelOptions
*/
interface rtcStateType {
sdpConstraints: sdpConstraintsType;
constraints: constraintsType;
dataChannelOptions: dataChannelOptionsType;
}
/**
* @function useRtcState
* @returns {rtcStateType}
*/
export declare const useRtcState: () => rtcStateType;
export {};