VideoTrimView

@objcMembers
@objc(PESDKVideoTrimView)
open class VideoTrimView : UIView
extension VideoTrimView: VideoTrimSelectionViewDelegate
extension VideoTrimView: UIScrollViewDelegate

A view that displays keyframes of a video, a playback scrubber on top of the keyframes and a view on the left and right side of the keyframes to adjust start and end time.

Properties

  • The delegate object for this view.

    Declaration

    Swift

    public weak var delegate: VideoTrimViewDelegate?
  • The asset to load the keyframes for.

    Declaration

    Swift

    @available(*, deprecated, message: "Use `video` or `video.asset` instead.")
    public var asset: AVAsset? { get set }
  • The video to load the keyframes for.

    Declaration

    Swift

    public var video: Video? { get set }
  • The width of each generated thumbnail. This property supports being set via a UIAppearance proxy.

    Declaration

    Swift

    @objc
    public dynamic var thumbnailWidth: CGFloat { get set }
  • The minimum trim duration.

    Declaration

    Swift

    public var minimumDuration: CMTime { get set }
  • The maximum trim duration.

    Declaration

    Swift

    public var maximumDuration: CMTime? { get set }
  • The start time that was selected.

    Declaration

    Swift

    public var startTime: CMTime? { get set }
  • The end time that was selected.

    Declaration

    Swift

    public var endTime: CMTime? { get set }
  • The current time.

    Declaration

    Swift

    public var currentTime: CMTime? { get set }
  • If true the timeline is dynamic and automatically zooms the current trim duration defined by startTime and endTime to the view width. If false the timeline is static and it always maps the whole untrimmed video duration to the view width. This property supports being set via a UIAppearance proxy.

    Declaration

    Swift

    @objc
    public dynamic var isZoomToSelectionEnabled: Bool { get set }

Scrubber

  • Displays the scrubber view.

    Declaration

    Swift

    open func play()
  • Hides the scrubber view.

    Declaration

    Swift

    open func pause()