From 4d07ffc6001df7086bc058c390900921a9c07422 Mon Sep 17 00:00:00 2001 From: William Van Haevre Date: Thu, 29 Feb 2024 16:07:10 +0100 Subject: [PATCH 1/2] castAdapter init does not depend on availability of provided state --- src/internal/adapter/THEOplayerAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/adapter/THEOplayerAdapter.ts b/src/internal/adapter/THEOplayerAdapter.ts index 92152a4e1..76f43f953 100644 --- a/src/internal/adapter/THEOplayerAdapter.ts +++ b/src/internal/adapter/THEOplayerAdapter.ts @@ -552,7 +552,7 @@ export class THEOplayerAdapter extends DefaultEventDispatcher im this._playerVersion = version; if (state) { Object.assign(this._state, state); - this._castAdapter.init_(); } + this._castAdapter.init_(); } } From f600e6bf7b6602d45d9fceaf792587281192dc7f Mon Sep 17 00:00:00 2001 From: William Van Haevre Date: Thu, 29 Feb 2024 16:13:38 +0100 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3201b73d8..3a9663a74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - Fixed an issue on iOS where the lockscreen controls and displayed asset metadata would remain visible after the player has been destroyed. +- Fixed an issue where the castState was not initialized correctly. ## [3.8.0] - 24-02-23