UNPKG

@fishjam-cloud/react-client

Version:
16 lines 559 B
/** * This hook can register/deregister a custom MediaStream with Fishjam. * @group Hooks */ export declare function useCustomSource<T extends string>(sourceId: T): { /** * Associates the given stream with the custom source. * This stream will be sent to Fishjam after startStreaming has been called. */ setStream: (newStream: MediaStream | null) => Promise<void>; /** * The MediaStream currently associated with the custom source */ stream: MediaStream | undefined; }; //# sourceMappingURL=useCustomSource.d.ts.map