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

19 lines (18 loc) 715 B
import { HMSPeer, HMSPeerInit } from './HMSPeer'; import { HMSLocalPeer as IHMSLocalPeer } from '../../../interfaces/peer'; import { HMSRole } from '../../../interfaces/role'; import { HMSLocalAudioTrack, HMSLocalTrack, HMSLocalVideoTrack } from '../../../media/tracks'; declare type HMSLocalPeerInit = Omit<HMSPeerInit, 'isLocal' | 'peerId'> & { asRole?: HMSRole; }; export declare class HMSLocalPeer extends HMSPeer implements IHMSLocalPeer { isLocal: boolean; audioTrack?: HMSLocalAudioTrack; videoTrack?: HMSLocalVideoTrack; auxiliaryTracks: HMSLocalTrack[]; asRole?: HMSRole; constructor(peerData: HMSLocalPeerInit); isInPreview(): boolean; toString(): string; } export {};