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

31 lines (30 loc) 808 B
import { HMSSimulcastLayer } from '../interfaces'; import { HMSPreferredSimulcastLayer } from '../interfaces/simulcast-layers'; export interface PreferVideoLayerParams { params: { max_spatial_layer: HMSSimulcastLayer; track_id: string; }; method: 'prefer-video-track-state'; } export interface PreferLayerResponse { id: string; error?: { code: number; message: string; }; } export interface PreferAudioLayerParams { params: { subscribed: boolean; track_id: string; }; method: 'prefer-audio-track-state'; } export interface VideoTrackLayerUpdate { current_layer: HMSSimulcastLayer; expected_layer: HMSPreferredSimulcastLayer; track_id: string; subscriber_degraded: boolean; publisher_degraded: boolean; }