Interface MKSourceLabelingConfig

An object with callback functions to provide labels for audio tracks, qualities and subtitle tracks.

interface MKSourceLabelingConfig {
    qualities?: (quality: MKQualityMetadata) => string;
    subtitles?: (subtitle: MKSubtitleTrack) => string;
    tracks?: (track: MKTrackMetadata) => string;
}

Properties

qualities?: (quality: MKQualityMetadata) => string

A function that generates a label for a quality, usually a video quality.

Type declaration

subtitles?: (subtitle: MKSubtitleTrack) => string

A function that generates a label for a subtitle.

Type declaration

tracks?: (track: MKTrackMetadata) => string

A function that generates a label for a track, usually an audio track.

Type declaration

    • (track: MKTrackMetadata): string
    • Parameters

      • track: MKTrackMetadata

        Object with metadata about the track for which the label should be generated. The id field is populated when used for HLS, the mimeType when used for DASH.

      Returns string