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