interface SegmentPlaybackEvent {
    EXPERIMENTAL?: {
        hlsAttributes?: string[];
    };
    dateTime?: string;
    discontinuitySequenceNumber?: number;
    duration: number;
    mediaInfo: {
        bitrate?: number;
        frameRate?: number;
        height?: number;
        sampleRate?: number;
        width?: number;
    };
    mimeType: string;
    playbackTime: number;
    presentationTimestamp: number;
    representationId: string;
    timestamp: number;
    type: PlayerEvent;
    uid: string;
    url: string;
    wallClockTime: number;
}

Hierarchy (view full)

Properties

EXPERIMENTAL?: {
    hlsAttributes?: string[];
}

optional experimental data

Type declaration

  • Optional hlsAttributes?: string[]

    A list of all custom HLS tags that are associated to this segment. Global custom HLS tags are associated to the first segment. Custom tags in master playlists are not parsed.

dateTime?: string

optional time string, based on the #EXT-X-PROGRAM-DATE-TIME HLS tag.

discontinuitySequenceNumber?: number

optional number based on #EXT-X-DISCONTINUITY-SEQUENCE and #EXT-X-DISCONTINUITY HLS tags

duration: number

segment duration

mediaInfo: {
    bitrate?: number;
    frameRate?: number;
    height?: number;
    sampleRate?: number;
    width?: number;
}

coding parameters

Type declaration

  • Optional bitrate?: number
  • Optional frameRate?: number
  • Optional height?: number
  • Optional sampleRate?: number
  • Optional width?: number
mimeType: string

media mime type

playbackTime: number

Playback time of the segment in seconds

presentationTimestamp: number

Playback time encoded in the segment

representationId: string

ID of the representation this segment belongs to

timestamp: number

The time at which this event was fired

Event type, e.g. 'play'

uid: string

segment Unique ID

url: string

segment URL

wallClockTime: number

UTC wall-clock time in milliseconds for the segment's presentation in case of a live stream.

Generated using TypeDoc