Skip to content

Commit

Permalink
Editor: Improved video progress bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Mar 22, 2021
1 parent dd7f068 commit 27def9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/js/Sidebar.Project.Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function SidebarProjectVideo( editor ) {

ffmpeg.setProgress( ( { ratio } ) => {

progress.setValue( ratio );
progress.setValue( ( ratio * 0.5 ) + 0.5 );

} );

Expand All @@ -95,7 +95,7 @@ function SidebarProjectVideo( editor ) {
ffmpeg.FS( 'writeFile', `tmp.${num}.png`, await fetchFile( canvas.toDataURL() ) );
currentTime += 1 / fps;

progress.setValue( i / frames );
progress.setValue( ( i / frames ) * 0.5 );

}

Expand Down

0 comments on commit 27def9d

Please sign in to comment.