From a4cada46a4b814f16bc4d42968b583813fad2ec0 Mon Sep 17 00:00:00 2001 From: Jeremy Karlsson Date: Mon, 22 Jan 2024 16:17:03 +0100 Subject: [PATCH] Fix overwriteDuration --- .../player/src/internal/helpers/streaming-session-store.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/player/src/internal/helpers/streaming-session-store.ts b/packages/player/src/internal/helpers/streaming-session-store.ts index b2ffd79e..26cd21ab 100644 --- a/packages/player/src/internal/helpers/streaming-session-store.ts +++ b/packages/player/src/internal/helpers/streaming-session-store.ts @@ -108,7 +108,11 @@ class StreamingSessionStore { return; } - mediaProductTransition.playbackContext.actualDuration = updatedDuration; + mediaProductTransition.playbackContext = { + ...mediaProductTransition.playbackContext, + actualDuration: updatedDuration, + }; + this.saveMediaProductTransition(streamingSessionId, mediaProductTransition); }