File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -82,23 +82,18 @@ export default createPlugin({
8282 </ div >
8383 ) , panel ) ;
8484
85- // LOOP DE SEGURANÇA MELHORADO
8685 const interval = setInterval ( ( ) => {
8786 const video = getVideo ( ) ;
8887 if ( ! video ) return ;
8988
90- // Verifica velocidade de forma independente
9189 if ( Math . abs ( video . playbackRate - speed ( ) ) > 0.01 ) {
9290 video . playbackRate = speed ( ) ;
9391 }
9492
95- // CORREÇÃO: Verifica o pitch de forma independente e agressiva
9693 if ( video . preservesPitch !== keepPitch ( ) ) {
9794 video . preservesPitch = keepPitch ( ) ;
9895 // @ts -ignore - Prefixos para garantir funcionamento no Electron/Chromium
9996 video . webkitPreservesPitch = keepPitch ( ) ;
100- // @ts -ignore
101- video . mozPreservesPitch = keepPitch ( ) ;
10297 }
10398 } , 500 ) ;
10499
@@ -110,13 +105,14 @@ export default createPlugin({
110105 if ( video ) {
111106 video . playbackRate = 1.0 ;
112107 video . preservesPitch = true ;
108+ // @ts -ignore
109+ video . webkitPreservesPitch = true ;
113110 }
114111 } ;
115112
116113 this . cleanup = doCleanup ;
117114 onCleanup ( doCleanup ) ;
118115
119- // EFEITO REATIVO MELHORADO
120116 createEffect ( ( ) => {
121117 const video = getVideo ( ) ;
122118 if ( video ) {
You can’t perform that action at this time.
0 commit comments