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

37 lines (30 loc) 756 B
export enum HMSSimulcastLayer { NONE = 'none', LOW = 'low', MEDIUM = 'medium', HIGH = 'high', } export interface SimulcastLayer { rid: string; scaleResolutionDownBy: number; maxBitrate: number; maxFramerate: number; } export interface SimulcastResolution { width: number; height: number; } export interface SimulcastLayers { layers?: SimulcastLayer[]; } export type HMSPreferredSimulcastLayer = Exclude<HMSSimulcastLayer, HMSSimulcastLayer.NONE>; export interface HMSSimulcastLayerDefinition { layer: HMSPreferredSimulcastLayer; resolution: SimulcastResolution; } export type RID = 'f' | 'h' | 'q'; export const simulcastMapping = { f: HMSSimulcastLayer.HIGH, h: HMSSimulcastLayer.MEDIUM, q: HMSSimulcastLayer.LOW, };