()
| 505 | await new Promise(resolve => setTimeout(resolve, 50)); |
| 506 | |
| 507 | const renderLoop = () => { |
| 508 | currentRenderer.updateVideoFrame(currentVideo); |
| 509 | currentRenderer.render(effects, seed, currentVideo.videoWidth, currentVideo.videoHeight); |
| 510 | |
| 511 | const progress = Math.round((currentVideo.currentTime / videoDuration) * 100); |
| 512 | setState(s => ({ |
| 513 | ...s, |
| 514 | exportProgress: Math.min(progress, 100), |
| 515 | exportStatus: 'Exporting...' |
| 516 | })); |
| 517 | |
| 518 | if (!currentVideo.ended && !currentVideo.paused) { |
| 519 | animationId = requestAnimationFrame(renderLoop); |
| 520 | } |
| 521 | }; |
| 522 | |
| 523 | animationId = requestAnimationFrame(renderLoop); |
| 524 |
nothing calls this directly
no test coverage detected