From 56ca2842f75f23e6b85c9fb28490fffc27441a2f Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Mon, 23 Sep 2024 17:17:35 +0200 Subject: [PATCH] ui: debugging audio pt2 --- .../app/components/Session/Player/ReplayPlayer/AudioPlayer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/Session/Player/ReplayPlayer/AudioPlayer.tsx b/frontend/app/components/Session/Player/ReplayPlayer/AudioPlayer.tsx index 49cc7767c..98fe049fb 100644 --- a/frontend/app/components/Session/Player/ReplayPlayer/AudioPlayer.tsx +++ b/frontend/app/components/Session/Player/ReplayPlayer/AudioPlayer.tsx @@ -29,10 +29,11 @@ function DropdownAudioPlayer({ const files = React.useMemo(() => audioEvents.map((pa) => { const data = pa.payload; + const nativeTs = data.timestamp return { url: data.url, timestamp: data.timestamp, - start: pa.timestamp - sessionStart, + start: nativeTs ? nativeTs : pa.timestamp - sessionStart, }; }), [audioEvents.length, sessionStart])