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.

1.1 KB
Raw Blame
import { SessionRecordingPlayer } from 'scenes/session-recordings/player/SessionRecordingPlayer'
import { SessionRecordingPlayerMode } from 'scenes/session-recordings/player/sessionRecordingPlayerLogic'

import { ExportedData } from '../types'

export default function ExporterRecordingScene({
    recording,
    mode,
    autoplay,
    noBorder,
    exportToken,
    showInspector,
}: {
    recording: NonNullable<ExportedData['recording']>
    mode: ExportedData['mode']
    autoplay: ExportedData['autoplay']
    noBorder: ExportedData['noBorder']
    exportToken: ExportedData['exportToken']
    showInspector: ExportedData['showInspector']
}): JSX.Element {
    return (
        <SessionRecordingPlayer
            playerKey="exporter"
            sessionRecordingId={recording.id}
            mode={mode ?? SessionRecordingPlayerMode.Sharing}
            // A shared recording link carries no autoplay field, and those pages play on open.
            autoPlay={autoplay ?? true}
            withSidebar={showInspector ?? false}
            noBorder={noBorder ?? false}
            accessToken={exportToken}
        />
    )
}