For those who are new & trying to use AVplayer in their iphone apps,i would like to share that AVplayer has in built functions for only PLAY & PAUSE as "[self.myAvPlayer play]; & [self.myAvPlayer pause];",which are handy to use,whereas to stop a video AVplayer does not have any function as Stop,What AVplayer have is "Rate" to stop a video while its playing,all you have to do is set the video playback rate to 0 as-
self.myAvPlayer.rate == 0
This will set the playing rate of video to zero,hence the playback will be stopped.
Thanks for reading hope it helps.
0 Comment(s)