iphone Programming Glossary: avplayeritemdidplaytoendtimenotification
Streaming mp3 audio with AVPlayer http://stackoverflow.com/questions/13131177/streaming-mp3-audio-with-avplayer player NSNotificationCenter defaultCenter addObserver self selector @selector playerItemDidReachEnd name AVPlayerItemDidPlayToEndTimeNotification object songPlayer currentItem self.songPlayer addObserver self forKeyPath @ status options 0 context nil NSTimer scheduledTimerWithTimeInterval..
MPMoviePlayerController switching movies causes white flash http://stackoverflow.com/questions/4560065/mpmovieplayercontroller-switching-movies-causes-white-flash NSNotificationCenter defaultCenter addObserver self selector @selector movieOneItemDidReachEnd name AVPlayerItemDidPlayToEndTimeNotification object self.movieOneItem NSURL movieTwoItemURL NSBundle mainBundle URLForResource @ movieTwo withExtension @ mp4 AVURLAsset.. NSNotificationCenter defaultCenter addObserver self selector @selector movieTwoItemDidReachEnd name AVPlayerItemDidPlayToEndTimeNotification object self.movieTwoItem self.player play void movieOneItemDidReachEnd NSNotification notification play movie two once..
Check play state of AVPlayer http://stackoverflow.com/questions/5655864/check-play-state-of-avplayer of an item via Apple NSNotificationCenter defaultCenter addObserver self selector @selector #The selector name# name AVPlayerItemDidPlayToEndTimeNotification object #A player item# And to track playing you can track changes in the position of the playhead in an AVPlayer object..
Playing many different videos on iphone using AVPlayer http://stackoverflow.com/questions/6258573/playing-many-different-videos-on-iphone-using-avplayer NSNotificationCenter defaultCenter addObserver self selector @selector playerItemDidReachEnd name AVPlayerItemDidPlayToEndTimeNotification object player currentItem The code to select the clip to be played void viewSelect double curTime self.myView.backgroundColor..
No AVPlayer Delegate? How to track when song finished playing? Objective C iPhone development http://stackoverflow.com/questions/6837002/no-avplayer-delegate-how-to-track-when-song-finished-playing-objective-c-iphon notification. NSNotificationCenter defaultCenter addObserver self selector @selector itemDidFinishPlaying name AVPlayerItemDidPlayToEndTimeNotification object playerItem Pass the AVPlayerItem to a new player AVPlayer player AVPlayer alloc initWithPlayerItem playerItem autorelease..
|