¡@

Home 

2014/10/15 ¤U¤È 10:11:33

iphone Programming Glossary: mpmovieplayerplaybackdidfinishnotification

how to provide only one view with landscape for MPMoviePlayerController in IOS6

http://stackoverflow.com/questions/16469429/how-to-provide-only-one-view-with-landscape-for-mpmovieplayercontroller-in-ios6

YES NSNotificationCenter defaultCenter addObserver self selector @selector moviePlaybackComplete name MPMoviePlayerPlaybackDidFinishNotification object self.playercontroller NSNotificationCenter defaultCenter addObserver self selector @selector applicationDidEnterBackground..

Iphone sdk support for playing mp3 files over the network

http://stackoverflow.com/questions/3275990/iphone-sdk-support-for-playing-mp3-files-over-the-network

improve this question I ended up using 1. MPMediaPlayback protocol for controlling the MPMoviePlayerController 2. MPMoviePlayerPlaybackDidFinishNotification to determine if the playback completed due to error or due to user input. The player plays fine both with streaming and..

MPMoviePlayerController still leaking

http://stackoverflow.com/questions/3384388/mpmovieplayercontroller-still-leaking

this sequence of commands seems to do the job NSNotificationCenter defaultCenter removeObserver self name MPMoviePlayerPlaybackDidFinishNotification object myMoviePlayer NSNotificationCenter defaultCenter removeObserver self name MPMoviePlayerDidExitFullscreenNotification..

MPMoviePlayerController and HTTP Live Streaming

http://stackoverflow.com/questions/4302383/mpmovieplayercontroller-and-http-live-streaming

mediaURL NSNotificationCenter defaultCenter addObserver self selector @selector moviePlayBackDidFinish name MPMoviePlayerPlaybackDidFinishNotification object nil mp setControlStyle MPMovieControlStyleFullscreen mp setMovieSourceType MPMovieSourceTypeStreaming mp setFullscreen.. mp setFullscreen YES self.view addSubview mp view mp prepareToPlay mp play Actually the controller recieves MPMoviePlayerPlaybackDidFinishNotification without playing anything. Where is the problem iphone mpmovieplayercontroller share improve this question Your problem.. documentation To check for errors in URL loading register for the MPMoviePlayerContentPreloadDidFinishNotification or MPMoviePlayerPlaybackDidFinishNotification notifications. On error these notifications contain an NSError object available using the @ error key in the notification..

cocos2d: playing a video in the background of a menu

http://stackoverflow.com/questions/4454758/cocos2d-playing-a-video-in-the-background-of-a-menu

playing. NSNotificationCenter defaultCenter addObserver self selector @selector moviePlayBackDidFinish name MPMoviePlayerPlaybackDidFinishNotification object moviePlayer if moviePlayer respondsToSelector @selector view if MPMoviePlayerController instancesRespondToSelector..

Play video by default in full screen

http://stackoverflow.com/questions/5977330/play-video-by-default-in-full-screen

play NSNotificationCenter defaultCenter addObserver self selector @selector movieDidExitFullscreen name MPMoviePlayerPlaybackDidFinishNotification object mViewPlayer moviePlayer #endif else MPMoviePlayerController mMPPlayer MPMoviePlayerController alloc initWithContentURL.. mMPPlayer play NSNotificationCenter defaultCenter addObserver self selector @selector moviePlayerDidFinish name MPMoviePlayerPlaybackDidFinishNotification object mMPPlayer void movieDidExitFullscreen NSNotification notification UIApplication sharedApplication.. sharedApplication setStatusBarHidden YES Remove observer NSNotificationCenter defaultCenter removeObserver self name MPMoviePlayerPlaybackDidFinishNotification object nil self dismissModalViewControllerAnimated YES NSNotificationCenter defaultCenter removeObserver self name MPMoviePlayerPlaybackDidFinishNotification..

How to release MPMoviePlayerController?

http://stackoverflow.com/questions/695307/how-to-release-mpmovieplayercontroller

player notification.object player stop player autorelease The whole thing becomes a bit trickier in that the MPMoviePlayerPlaybackDidFinishNotification can get sent more than once but calling stop autorlease twice won't do you any good either. So you need to guard against..

Done button event MPMoviePlayerController

http://stackoverflow.com/questions/8227801/done-button-event-mpmovieplayercontroller

player aNotification object player stop NSNotificationCenter defaultCenter removeObserver self name MPMoviePlayerPlaybackDidFinishNotification object player player autorelease moviePlayer.view removeFromSuperview NSLog @ stopped That works fine But the problem is..

Extremely weird behavior of navigationBar and MPMoviePlayerController. Bug in iOS or my error?

http://stackoverflow.com/questions/8352045/extremely-weird-behavior-of-navigationbar-and-mpmovieplayercontroller-bug-in-io

url NSNotificationCenter defaultCenter addObserver self selector @selector moviePlayBackDidFinish name MPMoviePlayerPlaybackDidFinishNotification object moviePlayer moviePlayer.controlStyle MPMovieControlStyleDefault moviePlayer.shouldAutoplay YES self.view addSubview.. MPMoviePlayerController player notification object NSNotificationCenter defaultCenter removeObserver self name MPMoviePlayerPlaybackDidFinishNotification object player if player respondsToSelector @selector setFullscreen animated player.view removeFromSuperview Here is where.. url NSNotificationCenter defaultCenter addObserver self selector @selector moviePlayBackDidFinish name MPMoviePlayerPlaybackDidFinishNotification object moviePlayer NSNotificationCenter defaultCenter addObserver self selector @selector onPlayerWillExitFullScreen..

play video stream with MPMoviePlayerController

http://stackoverflow.com/questions/8864405/play-video-stream-with-mpmovieplayercontroller

url NSNotificationCenter defaultCenter addObserver self selector @selector moviePlayBackDidFinish name MPMoviePlayerPlaybackDidFinishNotification object moviePlayer moviePlayer.controlStyle MPMovieControlStyleDefault moviePlayer.shouldAutoplay YES self.view addSubview.. url NSNotificationCenter defaultCenter addObserver self selector @selector moviePlaybackDidFinish name MPMoviePlayerPlaybackDidFinishNotification object nil mpvc.moviePlayer.movieSourceType MPMovieSourceTypeStreaming self presentMoviePlayerViewControllerAnimated mpvc..

iPhone cannot rotate movie to landscape mode using MPMoviePlayerViewController

http://stackoverflow.com/questions/8982111/iphone-cannot-rotate-movie-to-landscape-mode-using-mpmovieplayerviewcontroller

setFullscreen TRUE NSNotificationCenter defaultCenter addObserver self selector @selector moviePlaybackComplete name MPMoviePlayerPlaybackDidFinishNotification object self.moviePlayerController self presentMoviePlayerViewControllerAnimated self.moviePlayerController The problem is..