File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -215,24 +215,12 @@ export class CameraSource extends UploaderBlock {
215215 ...this . cfg . mediaRecorerOptions ,
216216 } ;
217217
218- const isFirefox = navigator . userAgent . toLowerCase ( ) . indexOf ( 'firefox' ) > - 1 ;
219-
220218 if (
221219 this . cfg . mediaRecorerOptions ?. mimeType &&
222220 MediaRecorder . isTypeSupported ( this . cfg . mediaRecorerOptions . mimeType )
223221 ) {
224222 this . _options . mimeType = this . cfg . mediaRecorerOptions . mimeType ;
225- } else if (
226- isFirefox &&
227- this . cfg . mediaRecorerOptions ?. mimeType &&
228- MediaRecorder . isTypeSupported ( this . cfg . mediaRecorerOptions . mimeType )
229- ) {
230- const mimeType = this . cfg . mediaRecorerOptions ?. mimeType ;
231-
232- if ( mimeType && ! MediaRecorder . isTypeSupported ( mimeType ) ) {
233- throw new Error ( `MIME type ${ mimeType } is not supported` ) ;
234- }
235-
223+ } else {
236224 this . _options . mimeType = DEFAULT_VIDEO_FORMAT ;
237225 }
238226
You can’t perform that action at this time.
0 commit comments