File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -696,11 +696,16 @@ export class AVInterface {
696696 navigator . userAgent . includes ( 'Firefox' ) &&
697697 ! window . location . pathname . includes ( 'experimental' ) // support it on the experimental branch
698698 ) {
699- console . log (
700- 'VideoEncoder is broken on Firefox at least on windows! Deactivate!'
701- )
702- supported . videoin = false
703- supported . screencastin = false
699+ let browserVersion = 0.0
700+ const match = navigator . userAgent . match ( / F i r e f o x \/ ( \d + \. \d + ) / )
701+ if ( match ) browserVersion = Number ( `${ match [ 1 ] } ` )
702+ if ( browserVersion < 134 ) {
703+ console . log (
704+ 'VideoEncoder is broken on Firefox before 134 at least on windows! Deactivate!'
705+ )
706+ supported . videoin = false
707+ supported . screencastin = false
708+ }
704709 }
705710 return supported
706711 }
You can’t perform that action at this time.
0 commit comments