detect-audio-video
Version:
Detect audio and video features in browser
19 lines (18 loc) • 703 B
TypeScript
export interface ResultIsContentTypeSupported {
canPlayType: string;
isTypeSupported: boolean;
any: boolean;
both: boolean;
mediaElementType: string;
contentType: string;
}
export interface ResultIsContentTypeSupportedAsync {
audio?: ResultIsContentTypeSupported;
video?: ResultIsContentTypeSupported;
decodingInfo?: {
file: MediaCapabilitiesDecodingInfo;
'media-source': MediaCapabilitiesDecodingInfo;
};
}
export declare function isContentTypeSupported(contentType: string): ResultIsContentTypeSupported;
export declare function isContentTypeSupportedAsync(configuration: MediaDecodingConfiguration): Promise<ResultIsContentTypeSupportedAsync>;