I have a problem with MPMoviePlayerController, because when I turn it on in fullscreen, but the song is still running I MPMoviePlayerDidExitFullscreenNotification added notification and it says that when the video starts playing it is present on full screen. Here is my code:
_Multimedia Player = [[MP3 MPV Player Controller alloc] init]; _Multimedia Player.controllStyle = MPMV Control Styles Default; _Multimedia Player.InitialPlaybackTime = 0; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Silator (Video PlaybackDiffins :) Name: MP3 MP4 Player Player: NULL; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Selector (VideoplayerDietFlaskscreen :) Name: MPMVplayerDietFullScreenNotification Item: Zero]; [[NSNotificationCenter defaultCenter] addObserver: Self selector: @sillector (video player playbackstate changelog :) Name: MPMVplayerplaybackedeted change notification object: zero]; NSString * path = [NSString stringWithFormat: @ "% @ / mag_% d /% @", [FMUtiles documentFlowerPathwith file: zero], _magID, _pageObject.fileName]; If ([FMutilities fileexistimate path: path]) {_multimediaPlayer.contentURL = [NSUr file URLWithPath: path]; } And {_multimediaPlayer.contentURL = [NSURL URLWithString: [NSString stringWithFormat: @ "% @% @", self.dataURL, _pageObject.fileName]] ;; } CGSize objectViewSize = self.frame.size; _Multimedia Player.view.frame = CGRectMake (0, 0, Object ViewSize.width, objectViewSize.height); [Self Joins SubeView: _Multimedia Player] If (_pageObject.blink) {[_multimedia Player Set Fullscreen: Yes Animated: Yes]; } [_Multimedia Player Play];
This happens when the video does not download and it needs to be streamed.
Do you have any idea why this is happening?
The problem is solved, while I do not listen to the MPMoviePlayerPlaybackStateDidChange notification.
Comments
Post a Comment