From 959177e34fd5576c2a9f6cb43e0d300ec33c3b3f Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Mon, 22 Jan 2024 12:41:16 +0100 Subject: [PATCH] HFP-3856 Return previous state if not yet initialized --- src/scripts/interactive-video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/interactive-video.js b/src/scripts/interactive-video.js index c90a33fb..e54271d0 100644 --- a/src/scripts/interactive-video.js +++ b/src/scripts/interactive-video.js @@ -659,7 +659,7 @@ InteractiveVideo.prototype.setCaptionTracks = function (tracks) { InteractiveVideo.prototype.getCurrentState = function () { var self = this; if (!self.video || !self.video.play) { - return; // Missing video + return this.contentData?.previousState; // Missing video or not yet initialized } var state = {