UNPKG

react-native-whip-whep

Version:

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

13 lines 664 B
import { PeerConnectionState } from "../ReactNativeMobileWhepClientViewModule"; import { PeerConnectionState as WhipPeerConnectionState } from "../ReactNativeMobileWhipClientViewModule"; /** * Hook that returns the current state of the WHEP peer connection. * If WHEP client was not created, it will return "unknown". */ export declare const useWhepConnectionState: () => PeerConnectionState | null; /** * Hook that returns the current state of the WHIP peer connection. * If WHIP client was not created, it will return "unknown". */ export declare const useWhipConnectionState: () => WhipPeerConnectionState; //# sourceMappingURL=useConnectionState.d.ts.map