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

17 lines (16 loc) 623 B
import { EventBus } from '../../events/EventBus'; import { Store } from '../../sdk/store'; import { PolicyParams } from '../HMSNotifications'; /** * Handles: * - Set policy with publishParams, simulcast layers to store * - Emit 'local-peer-role-update' to trigger RoleChangeManager to publish/unpublish local tracks * - Emit 'policy-change' to finish preview before calling listener.onPreview */ export declare class PolicyChangeManager { private store; private eventBus; constructor(store: Store, eventBus: EventBus); handlePolicyChange(params: PolicyParams): void; private updateLocalPeerRole; }