P2P Media Loader Documentation
    Preparing search index...

    Describes a media segment with its unique identifiers, location, and timing information.

    type Segment = {
        runtimeId: string;
        externalId: number;
        url: string;
        byteRange?: ByteRange;
        startTime: number;
        endTime: number;
    }
    Index

    Properties

    runtimeId: string

    A runtime identifier for the segment that includes URL and byte range from its manifest.

    externalId: number

    An unique identifier of the segment in its stream used for P2P communications: sequence number for HLS or playtime for MPEG-DASH.

    url: string

    The URL from which the segment can be downloaded.

    byteRange?: ByteRange

    An optional property specifying the range of bytes that represent the segment.

    startTime: number

    The start time of the segment in seconds, relative to the beginning of the stream.

    endTime: number

    The end time of the segment in seconds, relative to the beginning of the stream.