From d89c6dfcb14c9210a222f2053daa8b9633695ee8 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Wed, 20 Sep 2023 15:54:46 +0100 Subject: [PATCH] fix: embedded recordings to use blob replay (#17548) --- .../session-recordings/player/sessionRecordingDataLogic.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts index 8db80c5d51ec7..d74828f8de776 100644 --- a/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts +++ b/frontend/src/scenes/session-recordings/player/sessionRecordingDataLogic.ts @@ -29,6 +29,7 @@ import { createSegments, mapSnapshotsToWindowId } from './utils/segmenter' import { featureFlagLogic } from 'lib/logic/featureFlagLogic' import { FEATURE_FLAGS } from 'lib/constants' import posthog from 'posthog-js' +import { getCurrentExporterData } from '~/exporter/exporterViewLogic' const IS_TEST_MODE = process.env.NODE_ENV === 'test' const BUFFER_MS = 60000 // +- before and after start and end of a recording to query for. @@ -208,7 +209,9 @@ export const sessionRecordingDataLogic = kea([ return } if (!values.sessionPlayerSnapshotData?.snapshots) { - if (values.featureFlags[FEATURE_FLAGS.SESSION_RECORDING_BLOB_REPLAY]) { + // if `getCurrentExporterData` has a value then we're embedded/exported + // so, we always want to use blob replay + if (values.featureFlags[FEATURE_FLAGS.SESSION_RECORDING_BLOB_REPLAY] || getCurrentExporterData()) { actions.loadRecordingSnapshotsV2() } else { actions.loadRecordingSnapshotsV1()