@@ -115,9 +115,21 @@ describe('codecs test suite', () => {
115115 format : { format_name : 'matroska,webm' } ,
116116 streams : [ { codec_type : 'video' , codec_name : 'vp8' } ] ,
117117 } ) ) . equals ( 'video/webm' ) ;
118+ expect ( getShortMIMEString ( {
119+ format : { format_name : 'matroska,webm' } ,
120+ streams : [ { codec_type : 'video' , codec_name : 'vp9' } ] ,
121+ } ) ) . equals ( 'video/webm' ) ;
122+ expect ( getShortMIMEString ( {
123+ format : { format_name : 'matroska,webm' } ,
124+ streams : [ { codec_type : 'video' , codec_name : 'av1' } ] ,
125+ } ) ) . equals ( 'video/webm' ) ;
118126 } ) ;
119127
120128 it ( 'detects WEBM audio' , ( ) => {
129+ expect ( getShortMIMEString ( {
130+ format : { format_name : 'matroska,webm' } ,
131+ streams : [ { codec_type : 'audio' , codec_name : 'opus' } ] ,
132+ } ) ) . equals ( 'audio/webm' ) ;
121133 expect ( getShortMIMEString ( {
122134 format : { format_name : 'matroska,webm' } ,
123135 streams : [ { codec_type : 'audio' , codec_name : 'vorbis' } ] ,
@@ -129,9 +141,29 @@ describe('codecs test suite', () => {
129141 format : { format_name : 'matroska,webm' } ,
130142 streams : [ { codec_type : 'video' , codec_name : 'h264' } ] ,
131143 } ) ) . equals ( 'video/x-matroska' ) ;
144+
145+ expect ( getShortMIMEString ( {
146+ format : { format_name : 'matroska,webm' } ,
147+ streams : [
148+ { codec_type : 'audio' , codec_name : 'aac' } ,
149+ { codec_type : 'video' , codec_name : 'vp9' } ,
150+ ] ,
151+ } ) ) . equals ( 'video/x-matroska' ) ;
152+
153+ expect ( getShortMIMEString ( {
154+ format : { format_name : 'matroska,webm' } ,
155+ streams : [
156+ { codec_type : 'audio' , codec_name : 'vorbis' } ,
157+ { codec_type : 'video' , codec_name : 'h264' } ,
158+ ] ,
159+ } ) ) . equals ( 'video/x-matroska' ) ;
132160 } ) ;
133161
134162 it ( 'detects Matroska audio' , ( ) => {
163+ expect ( getShortMIMEString ( {
164+ format : { format_name : 'matroska,webm' } ,
165+ streams : [ { codec_type : 'audio' , codec_name : 'aac' } ] ,
166+ } ) ) . equals ( 'audio/x-matroska' ) ;
135167 expect ( getShortMIMEString ( {
136168 format : { format_name : 'matroska,webm' } ,
137169 streams : [ { codec_type : 'audio' , codec_name : 'dts' } ] ,
0 commit comments