Invoked when a segment is fully downloaded and available for use.
Contains information about the loaded segment.
Triggered when an error occurs during the download of a segment.
Contains information about the errored segment.
Called if the download of a segment is aborted before completion.
Contains information about the aborted segment.
Fired at the beginning of a segment download process.
Provides details about the segment being downloaded.
Occurs when a new peer-to-peer connection is established.
Contains details about the peer that the event is about.
Triggered when an existing peer-to-peer connection is closed.
Contains details about the peer that the event is about.
Triggered when an error occurs during a peer-to-peer connection.
Contains details about the error and the peer that the event is about.
Invoked after a chunk of data from a segment has been successfully downloaded.
The size of the downloaded chunk in bytes.
The source of the download.
Optional
peerId: stringThe peer ID of the peer that the event is about, if applicable.
Called when a chunk of data has been successfully uploaded to a peer.
The length of the segment in bytes.
The peer ID, if the segment was downloaded from a peer
Called when an error occurs during the tracker request process.
Contains information about the tracker error.
Called when a warning occurs during the tracker request process.
Contains information about the tracker warning.
The CoreEventMap defines a comprehensive suite of event handlers crucial for monitoring and controlling the lifecycle of segment downloading and uploading processes.