-
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: segment-storage.ts * refactor: optimize segment storage deletion logic * refactor: Implemented segments-storage interface * refactor: update segment locking logic in HybridLoader * refactor: hasSegment function * refactor: Remove unused segment storage related code * refactor: Update segment storage initialization * refactor: P2P configuration * refactor: Custom segment storage handling * refactor: Remove async keyword from destroy method in segments-storage.interface.ts * fix: lint error * refactor: Update segment storage initialization and handling * refactor: Segments storage clear logic * refactor: segments-storage-interface * refactor: Files structure * refactor: Improve clear segments storage logic * docs: Add ISegmentStorage docs * refactor: Improve stream time window handling in SegmentsMemoryStorage * refactor: segments-storage interface * refactor: Update initialize segment storage logic * refactor: Update SegmentsStorage interface * refactor: Added validation of customSegmentStorage from config * refactor: Swap func params in correct order * refactor: Update segment storage classes and interfaces * fix: imports * refactor: Naming * refactor: Improve segment storage event handling * refactor: Optimize segment memory storage - Improve segment storage event handling - Update segment storage classes and interfaces - Swap function parameters in correct order - Set memory storage limit based on user agent - Clear segments based on memory storage limit * refactor: Optimize segment memory storage and update segment storage classes and interfaces - Refactored the segment-memory-storage.ts file to optimize the memory storage of segments. - Updated the segment storage classes and interfaces to improve performance and efficiency. * refactor: Update segment memory storage limit configuration - Change the `segmentsMemoryStorageLimit` configuration in the `Core` class to allow for an undefined value, instead of a specific number. This provides more flexibility in managing the memory storage limit for segments. - Update the `CommonCoreConfig` type definition in the `types.ts` file to reflect the change in the `segmentsMemoryStorageLimit` property. * refactor: Add segment categories in clear logic This commit optimizes the segment memory storage by introducing segment storage categories. The new SegmentCategories type is added to classify segments into different categories such as obsolete, beyondHalfHttpWindowBehind, behindPlayback, and aheadHttpWindow. The segment removal logic is updated to use these categories for better organization and efficiency. * refactor: Update segment memory storage limit description * refactor: Simplify segment memory storage limit configuration * refactor: Simplify segment memory storage limit configuration and optimize segment memory storage * refactor: Improve clear logic and added getAvailableSpace func * refactor: Simplify segment memory storage limit configuration and optimize segment memory storage - Added a new function getAvailableMemoryPercent() to calculate the available memory percentage. - Updated the generateQueue() function to pass the available memory percentage to QueueUtils.generateQueue(). - Modified the getUsedMemory() function in SegmentMemoryStorage to return the memory limit and memory used. - Updated the getSegmentPlaybackStatuses() function in utils/stream.ts to calculate the time windows based on the available memory percentage. * refactor: Disable random http downloads if memory storage is running out of memory * refactor: Clear logic * Revert "refactor: Clear logic" This reverts commit 8a631e7. * refactor: Improve segment memory storage and clear logic * refactor: Improve segment memory storage * refactor: Naming * refactor: Improve segment memory storage interface and getUsage() logic * Refactor segment-memory-storage.ts: Swap parameters in getStoredSegmentIds() * refactor: Swap parameters in getSegmentData() * refactor: Update setSegmentChangeCallback parameter name
- Loading branch information
1 parent
fb5300b
commit 21a030f
Showing
13 changed files
with
622 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { Core } from "./core.js"; | ||
export * from "./types.js"; | ||
export type { SegmentStorage } from "./segment-storage/index.js"; | ||
export { debug } from "debug"; |
Oops, something went wrong.