SegmentLoadDetails: {
    segmentUrl: string;
    bytesLength: number;
    downloadSource: DownloadSource;
    peerId: string | undefined;
    streamType: StreamType;
}

Represents the details about a loaded segment.

Type declaration

  • segmentUrl: string

    The URL of the loaded segment

  • bytesLength: number

    The length of the segment in bytes.

  • downloadSource: DownloadSource

    The source of the download.

  • peerId: string | undefined

    The peer ID, if the segment was downloaded from a peer.

  • streamType: StreamType

    The segment that the event is about.