canPlayType('video/webm') now returns 'maybe'

Published: | Categories: Audio & Video | Creative Commons BY-SA 3.0


The canPlayType method of the HTMLMediaElement interface has been updated to comply with the spec. canPlayType('video/webm') and canPlayType('audio/webm') now return 'maybe' instead of 'probably', because media can be encoded with a codec that Firefox doesn’t support. If a codec is specified in the type argument, the method returns 'probably' or '' (empty string) depending on the codec. For example, canPlayType('video/webm; codecs=vp8') returns 'probably'.