ios - MPMoviePlayerController replay video -


i want display button gives option user restart video in mpmovieplayercontroller @ time, while video playing. tried has no effect:

-(ibaction)reloadvideo:(id)sender{  [movieplayer play];  } 

why doesn't work?

you should call first [movieplayer stop] will:

stops playback of current item , resets playhead start of item. calling play method again initiates playback beginning of item.

(from apple docs)


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -