Created
November 24, 2019 14:20
-
-
Save nondanee/bad988c23d08bf02faa9da49a3d0cedd to your computer and use it in GitHub Desktop.
MediaSource supported type test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
'video/webm;codecs="vp8"', | |
'video/webm;codecs="vorbis"', | |
'video/webm;codecs="vp8,vorbis"', | |
'video/webm;codecs="vorbis, vp8"', | |
'audio/webm;codecs="vorbis"', | |
'AUDIO/WEBM;CODECS="vorbis"', | |
'audio/webm;codecs="opus"', | |
'video/webm;codecs="opus"', | |
'video/mp4;codecs="avc1.4d001e"', | |
'video/mp4;codecs="avc1.42001e"', | |
'audio/mp4;codecs="mp4a.40.2"', | |
'audio/mp4;codecs="mp4a.40.5"', | |
'audio/mp4;codecs="mp4a.67"', | |
'video/mp4;codecs="mp4a.40.2"', | |
'video/mp4;codecs="avc1.4d001e,mp4a.40.2"', | |
'video/mp4;codecs="mp4a.40.2 , avc1.4d001e "', | |
'video/mp4;codecs="avc1.4d001e,mp4a.40.5"', | |
'audio/mp4;codecs="opus' | |
].forEach(type => | |
console.log(type, MediaSource.isTypeSupported(type)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment