UNPKG

@100mslive/hms-video-store

Version:

@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow

18 lines (17 loc) 688 B
import { Subscribe } from 'zustand/vanilla'; import { GetState, IHMSStatsStoreReadOnly, IHMSStore } from '../IHMSStore'; import { HMSStatsStore } from '../schema'; import { HMSSdk } from '../sdk'; /** * @internal */ export declare class HMSStats implements IHMSStatsStoreReadOnly { private hmsStore; private sdk?; readonly getState: GetState<HMSStatsStore>; readonly subscribe: Subscribe<HMSStatsStore>; readonly getPublishPeerConnection: () => Promise<RTCPeerConnection | undefined>; readonly getSubscribePeerConnection: () => Promise<RTCPeerConnection | undefined>; private readonly store; constructor(hmsStore: IHMSStore, sdk?: HMSSdk | undefined); }