BMPThumbnailTrack

Objective-C


@interface BMPThumbnailTrack : BMPTrack

Swift

class ThumbnailTrack : Track

Describes a thumbnail track.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUrl:(nonnull NSURL *)url
                                  label:(nonnull NSString *)label
                             identifier:(nonnull NSString *)identifier
                         isDefaultTrack:(BOOL)isDefaultTrack;

    Swift

    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 YES, this track would be considered as default.

    Return Value

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