I need to send notifications when the AVPlayer is Play/Paused and Stopped. For play and pause below is the code
if (self.player.rate > 0.0f) { NSLog(@" Playing ..") }
if (self.player.rate == 0.0f) { NSLog(@" Paused ..") }
But for stopped also the rate = 0.0 then is there any other property or way to identify the difference between paused and stopped. For both, paused and stopped the rate = 0.0 and hence need another way for it.
Thanks