UNPKG

react-native-whip-whep

Version:

An implementation of WHIP and WHEP protocols functionalities for React Native.

20 lines 1.17 kB
import type { NativeModule } from "expo-modules-core/types"; export declare const ReceivableEvents: { readonly WhepPeerConnectionStateChanged: "WhepPeerConnectionStateChanged"; readonly ReconnectionStatusChanged: "ReconnectionStatusChanged"; readonly Warning: "Warning"; }; export type PeerConnectionState = "new" | "connecting" | "connected" | "disconnected" | "failed" | "closed" | "unknown"; export type ReceivableEventPayloads = { [ReceivableEvents.ReconnectionStatusChanged]: "reconnectionStarted" | "reconnected" | "reconnectionRetriesLimitReached"; [ReceivableEvents.WhepPeerConnectionStateChanged]: PeerConnectionState; [ReceivableEvents.Warning]: string; }; type RNMobileWhepClientViewModule = { whepPeerConnectionState: PeerConnectionState | null; }; declare const nativeViewModule: RNMobileWhepClientViewModule & NativeModule<Record<keyof typeof ReceivableEvents, (payload: any) => void>>; /** Gives access to the current state of the WHEP peer connection. */ export declare const whepPeerConnectionState: PeerConnectionState | null; export default nativeViewModule; //# sourceMappingURL=ReactNativeMobileWhepClientViewModule.d.ts.map