diff --git a/package-lock.json b/package-lock.json index a8e7eecf..5d272317 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "axios": "1.5.0" }, "devDependencies": { - "@types/chromecast-caf-receiver": "5.0.15", + "@types/chromecast-caf-receiver": "6.0.10", "@types/jest": "29.5.5", "@types/node": "18.17.17", "@types/webpack": "5.28.0", @@ -1520,9 +1520,9 @@ } }, "node_modules/@types/chromecast-caf-receiver": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/@types/chromecast-caf-receiver/-/chromecast-caf-receiver-5.0.15.tgz", - "integrity": "sha512-VKxL/A2NPGAWHTuTv3sKcbdzIY+z4sAV/sVWTvBVc0IRSKMdY2ZHLXAzOkSo3Hs+XRuBunMiL8M5Z6P7optroA==", + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/@types/chromecast-caf-receiver/-/chromecast-caf-receiver-6.0.10.tgz", + "integrity": "sha512-MaM4DisEr8pD9Mvt4nxag9Ff7v95dRYklxRdCEduxTx5djSgSFf/+zg7kORevB36YDE2yDoCB89Q1cPwhmS7mA==", "dev": true }, "node_modules/@types/connect": { diff --git a/package.json b/package.json index db8a7846..4a0a2e13 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "axios": "1.5.0" }, "devDependencies": { - "@types/chromecast-caf-receiver": "5.0.15", + "@types/chromecast-caf-receiver": "6.0.10", "@types/jest": "29.5.5", "@types/node": "18.17.17", "@types/webpack": "5.28.0", diff --git a/src/components/maincontroller.ts b/src/components/maincontroller.ts index b41f3e42..3df3da81 100644 --- a/src/components/maincontroller.ts +++ b/src/components/maincontroller.ts @@ -228,7 +228,7 @@ window.playerManager.addEventListener( cast.framework.events.EventType.PLAYER_LOAD_COMPLETE, () => { setTextTrack( - window.playerManager.getMediaInformation().customData + window.playerManager.getMediaInformation()?.customData .subtitleStreamIndex ); } @@ -463,7 +463,7 @@ export async function changeStream( params: any = undefined ): Promise { if ( - window.playerManager.getMediaInformation().customData.canClientSeek && + window.playerManager.getMediaInformation()?.customData.canClientSeek && params == null ) { window.playerManager.seek(ticks / 10000000);