Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release-v0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
justusmattern27 committed Jun 25, 2024
2 parents 71f615f + f7c41a7 commit f5da8a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/renderer/server/render-video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
getVideoDuration,
mergeAudioWithVideo,
} from '@revideo/ffmpeg';
import {EventName, sendEvent} from '@revideo/telemetry';
import motionCanvas from '@revideo/vite-plugin';
import * as fs from 'fs';
import * as os from 'os';
Expand Down Expand Up @@ -167,6 +168,11 @@ async function renderVideoOnPage(
throw new Error('Server address is null');
}

// only report for worker 0
if (id === 0) {
sendEvent(EventName.RenderStarted);
}

// Attach logs from puppeteer to the console
page.on('console', msg => {
for (let i = 0; i < msg.args().length; ++i) {
Expand Down

0 comments on commit f5da8a6

Please sign in to comment.