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

12 lines (10 loc) 294 B
import { HMSAudioTrack } from './HMSAudioTrack'; export class HMSRemoteAudioTrack extends HMSAudioTrack { async setEnabled(value: boolean): Promise<void> { if (value === this.enabled) { return; } await super.setEnabled(value); await this.subscribeToAudio(value); } }