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

22 lines (17 loc) 426 B
import { HMSTrack } from '../tracks'; export class HMSMediaStream { readonly nativeStream: MediaStream; id: string; readonly tracks = new Array<HMSTrack>(); constructor(nativeStream: MediaStream) { this.nativeStream = nativeStream; this.id = nativeStream.id; } /** * This is only used when onDemandTracks flag is enabled in Init * @param id */ updateId(id: string) { this.id = id; } }