diff --git a/src/voice/PlaybackClock.ts b/src/voice/PlaybackClock.ts index 4f3d4e6dbb..712d1bfa94 100644 --- a/src/voice/PlaybackClock.ts +++ b/src/voice/PlaybackClock.ts @@ -103,8 +103,8 @@ export class PlaybackClock implements IDestroyable { * @param {MatrixEvent} event The event to use for placeholders. */ public populatePlaceholdersFrom(event: MatrixEvent) { - const durationSeconds = Number(event.getContent()['info']?.['duration']); - if (Number.isFinite(durationSeconds)) this.placeholderDuration = durationSeconds; + const durationMs = Number(event.getContent()['info']?.['duration']); + if (Number.isFinite(durationMs)) this.placeholderDuration = durationMs / 1000; } /**