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

20 lines (19 loc) 735 B
import { HMSUpdateListener } from '../../interfaces'; import { Store } from '../../sdk/store'; /** * Handles request from remote peers to change something on the local side. For eg. role change, track mute/unmute. */ export declare class RequestManager { private store; listener?: HMSUpdateListener | undefined; constructor(store: Store, listener?: HMSUpdateListener | undefined); handleNotification(method: string, notification: any): void; private handleRoleChangeRequest; private handleTrackUpdateRequest; private handleChangeTrackStateRequest; /** * Filter the local tracks based on type, source and enabled state * @returns {HMSLocalTrack[]} */ private getTracksToBeUpdated; }