Interface MKSegmentPlaybackEvent

MKPlayer event base.

Hierarchy

Properties

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

optional experimental data.

Type declaration

  • Optional hlsAttributes?: string[]
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 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.