andreipitis / ASPVideoPlayer

A simple video player that allow animations to be performed on the view during playback.
MIT License
89 stars 43 forks source link

how can i stop video? #20

Closed choiks14 closed 6 years ago

choiks14 commented 6 years ago

how can i stop video?

plz help me.

andreipitis commented 6 years ago

Hi @choiks14,

Your question is a bit vague, but I'm assuming you wish to stop the video playback programatically.

If you are using ASPVideoPlayerView, you can stop the video playback using the stopVideo() method:

let videoPlayer = ASPVideoPlayerView()
...
videoPlayer.stopVideo()

If you are using ASPVideoPlayer, you can use the stop() method of the videoPlayerControls property:

let videoPlayer = ASPVideoPlayer()
...
videoPlayer.videoPlayerControls.stop()