@fishjam-cloud/react-client
Version:
React client library for Fishjam
22 lines • 830 B
TypeScript
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