AudioTrimView

@objcMembers
@objc(PESDKAudioTrimView)
open class AudioTrimView : UIView
extension AudioTrimView: UIScrollViewDelegate

A view that displays the waveform and playback position of an audio track to trim its duration by defining its start position in relation to a target timeline, e.g., the duration of a video where this audio track should be added as overlay audio.

Properties

  • The delegate object for this view.

    Declaration

    Swift

    public weak var delegate: AudioTrimViewDelegate?
  • The asset that contains the audio track that should be trimmed.

    Declaration

    Swift

    public var asset: AVAsset? { get set }
  • The current selected start time of the audio track. A negative value means that the audio track should start after the beginning of the target timeline.

    Declaration

    Swift

    public var audioStartTime: CMTime { get set }
  • The current time of the target timeline to highlight the playback progress.

    Declaration

    Swift

    public var timelineTime: CMTime { get set }
  • The duration of the target timeline where the audio track should be positioned in.

    Declaration

    Swift

    public var timelineDuration: CMTime { get set }