ios - MPMoviePlayerController restarting instead of resuming -


I am trying to access MPMoviePlayerController programming and playback time, then reassign the initial, current and end time Play "Start over again"

then play first, say, for 4 seconds from start, pause / pause, start over again and play from 4 to 8, etc. ...

But after reassigning the present, the initial and the last playback times and run [emplaire play], i Video restarts from time to time (starts with 4) and plays at original end time, even if debug messages confirm new time after the second game

  NSURL * fileURL = [Nsur file url path: pathpath]; _mplayer3 = [[MP3 MPV Player Controller Alok] initWithContentURL: fileURL]; _mplayer3.controlStyle = MPMovieControlStyleNone; [_mplayer3.view Set Frame: self.view.bounds]; [Insert Self.viewSeeview: _mplayer3.viewSubviewView: _TopBrag]; _mplayer3.endPlaybackTime = 4.0; [_mplayer3SetheldEatellite: No]; [_mplayer3 ready]; [_mplayer3 view] .userInteractionEnabled = Yes; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Sillector (VerticalDownFinish) Name: MPMVplayerplaybackDefinitionNotation Object: _player3]; [_mplayer3 drama]; On the end notification   

A gesture identifier has been created that works correctly. In gesture identifier:

  _mplayer3.initial.playbackTime = _mplayer3.endPlaybackTime; _mplayer3.currentPlaybackTime = _mplayer3.endPlaybackTime; _mplayer3.endPlaybackTime + = 4.0; If (_mplayer3.endPlaybackTime & gt; _mplayer3.duration) _mplayer3.endPlaybackTime = _mplayer3.duration; [_mplayer3 play]   

and the video plays from 0 to 4 in place of 4 to 8, even after the drama NSG suggests that the same is desired

Anyone's appreciation

MPMoviePlayerController does not follow the initial playback time < / Code> If not used on a fresh example, you will need to release and re-lock the player to get this work done. Once the player continues, you just have to reuse the initial code shown in your question.


Update:

Because you seem to be keen on keeping the player active and as you are not using the standard user interface, Eppleer Instead it is more flexible and this is the right option for your job.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -