ThumbnailTrack

@objcMembers
@objc(BMPThumbnailTrack)
public class ThumbnailTrack : Track

Describes a thumbnail track.

  • Creates a new thumbnail track based on the given URL and provided metadata.

    Declaration

    Swift

    public init(
        url: URL,
        label: String,
        identifier: String,
        isDefaultTrack: Bool
    )

    Parameters

    url

    The URL to the timed file, i.e. WebVTT file.

    label

    The label for this track.

    identifier

    The unique identifier for this track.

    isDefaultTrack

    If set to true, this track would be considered as default.

    Return Value

    A new ThumbnailTrack initialized with the given thumbnail URL and the provided metadata.