VideoPlayer

@objc(YMAVideoPlayer)
public protocol VideoPlayer

This protocol is used for playing content video.

  • Delegate object. For each event that happend during the playback, the corresponding callback must be called on this object.

    Declaration

    Swift

    weak var delegate: VideoPlayerDelegate? { get set }
  • Content video position in seconds.

    Declaration

    Swift

    var position: TimeInterval { get }
  • Content video duration in seconds.

    Declaration

    Swift

    var duration: TimeInterval { get }
  • Prepares player to play content video.

    Declaration

    Swift

    func prepareVideo()
  • Pauses content video.

    Declaration

    Swift

    func pauseVideo()
  • Resumes content video.

    Declaration

    Swift

    func resumeVideo()