Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(replay): keep inactive periods in mp4 recording exports (#59330)

Tue Haulund66dcd13f8358
diff --git a/frontend/src/lib/components/ExportButton/exportsLogic.ts b/frontend/src/lib/components/ExportButton/exportsLogic.ts
index aa9c93d80492..e7901605587b 100644
--- a/frontend/src/lib/components/ExportButton/exportsLogic.ts
+++ b/frontend/src/lib/components/ExportButton/exportsLogic.ts
@@ -159,6 +159,7 @@ export const exportsLogic = kea<exportsLogicType>([
height: options?.height || 600,
filename: options?.filename || `replay-${sessionRecordingId}${timestamp ? `-t${timestamp}` : ''}`,
duration: duration,
+ skip_inactivity: false,
},
}
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index fed9773dde13..74fb1a66b172 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -5231,6 +5231,7 @@ export interface ReplayExportContext {
filename?: string
duration?: number
mode?: SessionRecordingPlayerMode
+ skip_inactivity?: boolean
}
export interface HeatmapExportContext {