From 1434426f2c3b9573a4480e6478ffeaa81d7e9f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Fri, 13 Sep 2024 09:39:31 +0200 Subject: [PATCH] feat(Cast): Enable storage in Android Cast devices (#7292) Related to https://github.com/shaka-project/shaka-player/issues/7253 --- lib/offline/indexeddb/storage_mechanism.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/offline/indexeddb/storage_mechanism.js b/lib/offline/indexeddb/storage_mechanism.js index 490d7b5688..986f106964 100644 --- a/lib/offline/indexeddb/storage_mechanism.js +++ b/lib/offline/indexeddb/storage_mechanism.js @@ -392,9 +392,10 @@ shaka.offline.indexeddb.StorageMechanism.SESSION_ID_STORE = 'session-ids'; shaka.offline.StorageMuxer.register( 'idb', () => { - // Offline storage is not supported on the Chromecast or Xbox One - // platforms. - if (shaka.util.Platform.isChromecast() || + // Offline storage is not supported on the Chromecast Linux/Fuschia or + // Xbox One platforms. + if ((shaka.util.Platform.isChromecast() && + !shaka.util.Platform.isAndroidCastDevice()) || shaka.util.Platform.isXboxOne()) { return null; }