@twilio/voice-sdk
Version:
Twilio's JavaScript Voice SDK
20 lines (19 loc) • 927 B
TypeScript
/**
* @typedef {Object} StatsOptions
* Used for testing to inject and extract methods.
* @property {function} [createRTCSample] - Method for parsing an RTCStatsReport
*/
/**
* Collects any WebRTC statistics for the given {@link PeerConnection}
* @param {PeerConnection} peerConnection - Target connection.
* @param {StatsOptions} options - List of custom options.
* @return {Promise<RTCSample>} Universally-formatted version of RTC stats.
*/
declare function getRTCStats(peerConnection: any, options: any): any;
/**
* Generate WebRTC stats report containing relevant information about ICE candidates for the given {@link PeerConnection}
* @param {PeerConnection} peerConnection - Target connection.
* @return {Promise<RTCIceCandidateStatsReport>} RTCIceCandidateStatsReport object
*/
declare function getRTCIceCandidateStatsReport(peerConnection: any): any;
export { getRTCStats, getRTCIceCandidateStatsReport, };