Initializes the storage.
The core configuration containing storage options.
The configuration for the main stream.
The configuration for the secondary stream.
Updates the storage with the current playback position from the player.
The current playback position.
The current playback rate.
Provides the storage with information about a segment requested by the player.
The swarm identifier.
The stream identifier.
The segment identifier.
The start time of the segment.
The end time of the segment.
The type of the stream.
Indicates whether the stream is live.
Stores the data for a specific segment.
The swarm identifier.
The stream identifier.
The segment identifier.
The segment data to store.
The start time of the segment.
The end time of the segment.
The type of the stream.
Indicates whether the stream is live.
Retrieves the data for a specific segment.
The swarm identifier.
The stream identifier.
The segment identifier.
Retrieves information about the current memory usage of the storage.
Checks if a specific segment is present in the storage.
The swarm identifier.
The stream identifier.
The segment identifier.
true if the segment is in the storage, otherwise false.
Retrieves the IDs of all segments for a specific stream currently stored in the storage.
The swarm identifier.
The stream identifier.
Sets the callback function to be invoked when segments are added to or removed from the storage.
The callback function, which receives the streamId of the affected stream.
Destroys the storage and releases all associated resources.
The interface for segment storage.