ThumbnailImage Class

public class ThumbnailImage

Defines a single thumbnail image along with it’s timing information.

Lifecycle

  • Creates a thumbnail image payload with its display time range.

    Declaration

    Swift

    public init(
        timeStampStart: CMTime,
        timeStampEnd: CMTime,
        imageData: Data
    )

    Parameters

    timeStampStart

    Start time where thumbnail becomes active.

    timeStampEnd

    End time where thumbnail stops being active.

    imageData

    Encoded image bytes.

Public

  • Media player position where the thumbnail should start to be shown.

    Declaration

    Swift

    public var timeStampStart: CMTime
  • Media player position where the thumbnail should stop being shown.

    Declaration

    Swift

    public var timeStampEnd: CMTime
  • The raw image data for the thumbnail. Can be used to construct an UIImageView object.

    Declaration

    Swift

    public var imageData: Data