Media
Media Capabilities API
Query playback and encoding smoothness & power efficiency for specific audio/video codecs.
Checking support...
Feature Not SupportedThis browser does not support the Media Capabilities API Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
const info = await navigator.mediaCapabilities.decodingInfo({
type: 'file',
video: { contentType: 'video/mp4; codecs="avc1.640028"', width: 1920, height: 1080, bitrate: 10000, framerate: 60 }
});About the Media Capabilities API Web API
Media Capabilities API reports whether playback/decoding of a media format is supported and smooth.
Specification:W3C & WHATWG Web API Standard
Sponsored Content