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

16 lines (15 loc) 565 B
import { HMSPreferredSimulcastLayer, HMSSimulcastLayerDefinition } from '../../interfaces'; export declare const layerToIntMapping: { none: number; low: number; medium: number; high: number; }; /** * Given the simulcast layers and the current video element dimensions, this function finds the * layer with dimensions closer to the video element dimensions. */ export declare const getClosestLayer: (simulcastLayers: HMSSimulcastLayerDefinition[], videoElementDimensions: { width: number; height: number; }) => HMSPreferredSimulcastLayer;