Hello I have set my UISliderminimum value to 0.00. Then I set it\'s max value in this way.
UISlider
self.viewPlayer.layer.addSublayer(playerLayer) le
Another, simpler, approach is something like:
if videoPlayer.rate != 0 && videoPlayer.error == nil { print("video player is playing.................") } else { print("video player is NOT playing.") }
Where videoPlayer is of type AVPlayer, obviously.