Interface MKSegmentPlaybackEvent

MKPlayer event base.

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

Hierarchy (View Summary)

Properties

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.

EXPERIMENTAL?: { hlsAttributes?: string[] }

optional experimental data.

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

coding parameters

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 timestamp (in milliseconds) when this event was fired.

Event type.

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.