P2P Media Loader Documentation
    Preparing search index...

    Type Alias SegmentLoadDetails

    Represents the details about a loaded segment.

    type SegmentLoadDetails = {
        segmentUrl: string;
        segment: Segment;
        bytesLength: number;
        downloadSource: DownloadSource;
        peerId: string | undefined;
        infoHash: string;
        streamType: StreamType;
    }
    Index

    Properties

    segmentUrl: string

    The URL of the loaded segment

    Use segment.url instead

    segment: Segment

    The segment that the event is about.

    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.

    infoHash: string

    The info hash of the swarm that the segment belongs to.

    streamType: StreamType

    The type of stream that the segment is associated with.