Type alias CreateFishjamClient<PeerMetadata, TrackMetadata>

CreateFishjamClient<PeerMetadata, TrackMetadata>: {
    FishjamContextProvider: (({ children }) => JSX.Element);
    useCamera: (() => Devices<TrackMetadata>["camera"]);
    useClient: (() => Client<PeerMetadata, TrackMetadata>);
    useConnect: (() => ((config) => (() => void)));
    useDisconnect: (() => (() => void));
    useMicrophone: (() => Devices<TrackMetadata>["microphone"]);
    useReconnection: (() => UseReconnection);
    useScreenShare: (() => ScreenShareAPI<TrackMetadata>);
    useSelector: (<Result>(selector) => Result);
    useSetupMedia: ((config) => UseSetupMediaResult);
    useStatus: (() => PeerStatus);
    useTracks: (() => Record<TrackId, TrackWithOrigin<PeerMetadata, TrackMetadata>>);
}

Type Parameters

  • PeerMetadata
  • TrackMetadata

Type declaration