@twilio/rtc-diagnostics
Version:
Various diagnostics functions to help analyze connections to Twilio
22 lines (21 loc) • 578 B
TypeScript
import { UnsupportedError } from '../errors';
/**
* @internalapi
* We need to redeclare `Audio` on `Window` for old Typescript versions.
*/
declare global {
interface Window {
Audio: typeof Audio;
}
}
/**
* @internalapi
* Common error that can be thrown when the polyfill is unable to work.
*/
export declare const AudioUnsupportedError: UnsupportedError;
/**
* @internalapi
* This polyfill serves as a clean way to detect if the `HTMLAudioElement`
* constructor `Audio` does not exist.
*/
export declare const AudioPolyfill: typeof Audio | undefined;