@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) • 506 B
TypeScript
export declare class AudioContextManager {
private audioContext;
private destinationNode?;
private source;
private readonly TAG;
constructor(element: HTMLMediaElement);
/**
* Resume AudioContext if it is suspended
* Note: when the browser tab is muted by default, AudioContext will be in suspended state
* It has to be resumed for the video/audio to be played.
*/
resumeContext(): Promise<void>;
getAudioTrack(): MediaStreamTrack;
cleanup(): void;
}