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 (21 loc) 815 B
import { HMSTrack } from './HMSTrack'; import { HMSTrackType } from './HMSTrackType'; import { HMSMediaStream } from '../streams'; export declare class HMSAudioTrack extends HMSTrack { readonly type: HMSTrackType; private audioElement; private outputDevice?; constructor(stream: HMSMediaStream, track: MediaStreamTrack, source?: string); getVolume(): number | null; setVolume(value: number): Promise<void>; setAudioElement(element: HTMLAudioElement | null): void; /** * @internal * @returns {HTMLAudioElement | null} */ getAudioElement(): HTMLAudioElement | null; getOutputDevice(): MediaDeviceInfo | undefined; cleanup(): void; setOutputDevice(device?: MediaDeviceInfo): Promise<void>; protected subscribeToAudio(value: boolean): Promise<void>; }