UNPKG

@fishjam-cloud/react-client

Version:
22 lines 830 B
export type MoqAccess = { connectionUrl: string; token: string; }; export type UseSandboxProps = { sandboxApiUrl: string; }; export type RoomType = "conference" | "livestream" | "audio_only"; export declare const useSandbox: (props: UseSandboxProps) => { getSandboxPeerToken: (roomName: string, peerName: string, roomType?: RoomType) => Promise<string>; getSandboxViewerToken: (roomName: string) => Promise<string>; getSandboxLivestream: (roomName: string, isPublic?: boolean) => Promise<{ streamerToken: string; room: { id: string; name: string; }; }>; getSandboxMoqPublisherAccess: (streamName: string) => Promise<MoqAccess>; getSandboxMoqSubscriberAccess: (streamName: string) => Promise<MoqAccess>; }; //# sourceMappingURL=useSandbox.d.ts.map