UNPKG

whip-sdk-react

Version:
20 lines (19 loc) 636 B
import Publisher from './publish'; export interface PublishHook { audioMuted: boolean; videoMuted: boolean; peerconnection: RTCPeerConnection; init: typeof Publisher.prototype.init; publish: typeof Publisher.prototype.publish; mute: typeof Publisher.prototype.mute; unpublish: typeof Publisher.prototype.unpublish; } export declare function usePublish(): PublishHook; export interface Subscriber { videoTrack: MediaStreamTrack; audioTrack: MediaStreamTrack; state: RTCPeerConnectionState; mute: Function; stop: Function; } export declare function useSubscribe(Token: string): Subscriber;