@fishjam-cloud/react-client
Version:
React client library for Fishjam
14 lines • 655 B
TypeScript
import { type FishjamClient } from "@fishjam-cloud/ts-client";
import type { CustomSourceState } from "../../types/internal";
import type { PeerStatus } from "../../types/public";
type CustomSourceManagerProps = {
fishjamClient: FishjamClient;
peerStatus: PeerStatus;
};
export type CustomSourceManager = {
setStream: (sourceId: string, stream: MediaStream | null) => Promise<void>;
getSource: (sourceId: string) => CustomSourceState | undefined;
};
export declare function useCustomSourceManager({ fishjamClient, peerStatus }: CustomSourceManagerProps): CustomSourceManager;
export {};
//# sourceMappingURL=useCustomSourceManager.d.ts.map