Hello I have set my UISlider
minimum value to 0.00. Then I set it\'s max value in this way.
self.viewPlayer.layer.addSublayer(playerLayer)
le
SUPER EASY SOLUTION SWIFT 4-5:
Just check the timeControlStatus
!: (also works with PlayerQueue)
if avPlayer?.timeControlStatus.rawValue == 2 {
//video is playing (playing)
} else if avPlayer?.timeControlStatus.rawValue == 0 {
//video is not playing (paused)
}
the raw value will give you its current state :)