MediaSource.isTypeSupported()
and
<video|audio>.canPlayType()
. No media is fetched or
played — this only checks capability strings.
MediaSource.isTypeSupported(type)
type | result | notes |
---|
canPlayType(type)
type | element | result | notes |
---|
video/mp4
, video/webm
,
video/matroska
, video/x-matroska
avc
, hevc
, av1
,
vp8
, vp9
audio/mp4
, audio/webm
,
audio/matroska
, audio/x-matroska
aac
, opus
, vorbis
codecs=
.