@huddle01/react
Version:
The Huddle01 React SDK offers a comprehensive suite of hooks, methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.
21 lines (19 loc) • 493 B
TypeScript
declare const useRemoteVideo: (props: {
peerId: string;
onClose?: (reason?: {
code: number;
tag: string;
message: string;
}) => void;
onPlayable?: (data: {
stream: MediaStream;
track: MediaStreamTrack;
label: "video";
}) => void;
}) => {
state: "playable" | "unavailable" | "paused" | "available";
track: MediaStreamTrack | null;
stream: MediaStream | null;
isVideoOn: boolean;
};
export { useRemoteVideo };