saltfish 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/SaltfishPlayer.d.ts.map +1 -1
- package/dist/core/services/PlaylistOrchestrator.d.ts.map +1 -1
- package/dist/managers/StepTimeoutManager.d.ts +4 -0
- package/dist/managers/StepTimeoutManager.d.ts.map +1 -1
- package/dist/player.js +2 -2
- package/dist/player.min.js +2 -2
- package/dist/saltfish-playlist-player.es.js +9 -2
- package/dist/saltfish-playlist-player.umd.js +1 -1
- package/package.json +1 -1
|
@@ -2646,8 +2646,8 @@ class PlaylistOrchestrator {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
this.managers.uiManager.updatePosition();
|
|
2648
2648
|
store.sendStateMachineEvent({ type: "LOAD_MANIFEST" });
|
|
2649
|
-
const playlistPersistence =
|
|
2650
|
-
if (
|
|
2649
|
+
const playlistPersistence = options == null ? void 0 : options.persistence;
|
|
2650
|
+
if (typeof window !== "undefined") {
|
|
2651
2651
|
const userId = (_d = store.user) == null ? void 0 : _d.id;
|
|
2652
2652
|
const progress = this.managers.storageManager.getProgress(userId);
|
|
2653
2653
|
if (progress && progress[playlistId]) {
|
|
@@ -9846,6 +9846,12 @@ const _StepTimeoutManager = class _StepTimeoutManager {
|
|
|
9846
9846
|
this.stepTimeoutId = null;
|
|
9847
9847
|
}
|
|
9848
9848
|
}
|
|
9849
|
+
/**
|
|
9850
|
+
* Set the destroy callback
|
|
9851
|
+
*/
|
|
9852
|
+
setDestroyCallback(callback) {
|
|
9853
|
+
this.destroyCallback = callback;
|
|
9854
|
+
}
|
|
9849
9855
|
/**
|
|
9850
9856
|
* Destroys the player safely
|
|
9851
9857
|
*/
|
|
@@ -9994,6 +10000,7 @@ const _SaltfishPlayer = class _SaltfishPlayer {
|
|
|
9994
10000
|
this.playlistOrchestrator.setPlayerInitializationService(this.playerInitializationService);
|
|
9995
10001
|
this.playlistOrchestrator.setStateMachineActionHandler(this.stateMachineActionHandler);
|
|
9996
10002
|
this.stateMachineActionHandler.setDestroyCallback(() => this.destroy());
|
|
10003
|
+
managers.stepTimeoutManager.setDestroyCallback(() => this.destroy());
|
|
9997
10004
|
useSaltfishStore.subscribe(() => this.managerOrchestrator.handleStoreChanges());
|
|
9998
10005
|
this.stateMachineActionHandler.registerStateMachineActions();
|
|
9999
10006
|
}
|