import { NativeModules } from 'react-native'; const { RNZoomVideoSdkSessionStatisticsInfo } = NativeModules; export type ZoomVideoSdkSessionStatisticsInfoType = { /** * Fetches audio statistics information related to the SDK session. */ audioStatisticsInfo?: () => Promise; /** * Fetches video statistics information related to the SDK session. */ videoStatisticsInfo?: () => Promise; /** * Fetches share statistics information related to the SDK session. */ shareStatisticsInfo?: () => Promise; }; export type ZoomVideoSdkSessionAudioStatisticsInfoType = { /** * Retrieves the frequency of received audio. */ audioRecvFrequency?: () => Promise; /** * Retrieves the jitter of received audio. */ audioRecvJitter?: () => Promise; /** * Retrieves the latency of received audio. */ audioRecvLatency?: () => Promise; /** * Retrieves the average packet loss of received audio. */ audioRecvPacketLossAvg?: () => Promise; /** * Retrieves the maximum packet loss of received audio. */ audioRecvPacketLossMax?: () => Promise; /** * Retrieves the frequency of sent audio. */ audioSendFrequency?: () => Promise; /** * Retrieves the jitter of sent audio. */ audioSendJitter?: () => Promise; /** * Retrieves the latency of sent audio. */ audioSendLatency?: () => Promise; /** * Retrieves the average packet loss of sent audio. */ audioSendPacketLossAvg?: () => Promise; /** * Retrieves the maximum packet loss of sent audio. */ audioSendPacketLossMax?: () => Promise; }; export type ZoomVideoSdkSessionVideoStatisticsInfoType = { /** * Retrieves the frames per second of received video. */ videoRecvFps?: () => Promise; /** * Retrieves the frame height of received video. */ videoRecvFrameHeight?: () => Promise; /** * Retrieves the frame width of received video. */ videoRecvFrameWidth?: () => Promise; /** * Retrieves the jitter of received video. */ videoRecvJitter?: () => Promise; /** * Retrieves the latency of received video. */ videoRecvLatency?: () => Promise; /** * Retrieves the average packet loss of received video. */ videoRecvPacketLossAvg?: () => Promise; /** * Retrieves the maximum packet loss of received video. */ videoRecvPacketLossMax?: () => Promise; /** * Retrieves the frames per second of sent video. */ videoSendFps?: () => Promise; /** * Retrieves the frame height of sent video. */ videoSendFrameHeight?: () => Promise; /** * Retrieves the frame width of sent video. */ videoSendFrameWidth?: () => Promise; /** * Retrieves the jitter of sent video. */ videoSendJitter?: () => Promise; /** * Retrieves the latency of sent video. */ videoSendLatency?: () => Promise; /** * Retrieves the average packet loss of sent video. */ videoSendPacketLossAvg?: () => Promise; /** * Retrieves the maximum packet loss of sent video. */ videoSendPacketLossMax?: () => Promise; }; export type ZoomVideoSdkSessionShareStatisticsInfoType = { /** * Retrieves the frames per second of received share content. */ shareRecvFps?: () => Promise; /** * Retrieves the frame height of received share content. */ shareRecvFrameHeight?: () => Promise; /** * Retrieves the frame width of received share content. */ shareRecvFrameWidth?: () => Promise; /** * Retrieves the jitter of received share content. */ shareRecvJitter?: () => Promise; /** * Retrieves the latency of received share content. */ shareRecvLatency?: () => Promise; /** * Retrieves the average packet loss of received share content. */ shareRecvPacketLossAvg?: () => Promise; /** * Retrieves the maximum packet loss of received share content. */ shareRecvPacketLossMax?: () => Promise; /** * Retrieves the frames per second of sent share content. */ shareSendFps?: () => Promise; /** * Retrieves the frame height of sent share content. */ shareSendFrameHeight?: () => Promise; /** * Retrieves the frame width of sent share content. */ shareSendFrameWidth?: () => Promise; /** * Retrieves the jitter of sent share content. */ shareSendJitter?: () => Promise; /** * Retrieves the latency of sent share content. */ shareSendLatency?: () => Promise; /** * Retrieves the average packet loss of sent share content. */ shareSendPacketLossAvg?: () => Promise; /** * Retrieves the maximum packet loss of sent share content. */ shareSendPacketLossMax?: () => Promise; }; export class ZoomVideoSdkSessionStatisticsInfo implements ZoomVideoSdkSessionStatisticsInfoType, ZoomVideoSdkSessionAudioStatisticsInfoType, ZoomVideoSdkSessionVideoStatisticsInfoType, ZoomVideoSdkSessionShareStatisticsInfoType { private static instance: ZoomVideoSdkSessionStatisticsInfo; constructor() {} static getInstance() { if (!this.instance) { this.instance = new this(); } return this.instance; } async audioStatisticsInfo() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioStatisticsInfo(); } async audioRecvFrequency() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioRecvFrequency(); } async audioRecvJitter() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioRecvJitter(); } async audioRecvLatency() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioRecvLatency(); } async audioRecvPacketLossAvg() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioRecvPacketLossAvg(); } async audioRecvPacketLossMax() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioRecvPacketLossMax(); } async audioSendFrequency() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioSendFrequency(); } async audioSendJitter() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioSendJitter(); } async audioSendLatency() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioSendLatency(); } async audioSendPacketLossAvg() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioSendPacketLossAvg(); } async audioSendPacketLossMax() { return await RNZoomVideoSdkSessionStatisticsInfo.getAudioSendPacketLossMax(); } async videoStatisticsInfo() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoStatisticsInfo(); } async videoRecvFps() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoRecvFps(); } async videoRecvFrameHeight() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoRecvFrameHeight(); } async videoRecvFrameWidth() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoRecvFrameWidth(); } async videoRecvJitter() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoRecvJitter(); } async videoRecvLatency() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoRecvLatency(); } async videoRecvPacketLossAvg() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoRecvPacketLossAvg(); } async videoRecvPacketLossMax() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoRecvPacketLossMax(); } async videoSendFps() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoSendFps(); } async videoSendFrameHeight() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoSendFrameHeight(); } async videoSendFrameWidth() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoSendFrameWidth(); } async videoSendJitter() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoSendJitter(); } async videoSendLatency() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoSendLatency(); } async videoSendPacketLossAvg() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoSendPacketLossAvg(); } async videoSendPacketLossMax() { return await RNZoomVideoSdkSessionStatisticsInfo.getVideoSendPacketLossMax(); } async shareStatisticsInfo() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareStatisticsInfo(); } async shareRecvFps() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareRecvFps(); } async shareRecvFrameHeight() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareRecvFrameHeight(); } async shareRecvFrameWidth() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareRecvFrameWidth(); } async shareRecvJitter() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareRecvJitter(); } async shareRecvLatency() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareRecvLatency(); } async shareRecvPacketLossAvg() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareRecvPacketLossAvg(); } async shareRecvPacketLossMax() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareRecvPacketLossMax(); } async shareSendFps() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareSendFps(); } async shareSendFrameHeight() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareSendFrameHeight(); } async shareSendFrameWidth() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareSendFrameWidth(); } async shareSendJitter() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareSendJitter(); } async shareSendLatency() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareSendLatency(); } async shareSendPacketLossAvg() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareSendPacketLossAvg(); } async shareSendPacketLossMax() { return await RNZoomVideoSdkSessionStatisticsInfo.getShareSendPacketLossMax(); } }