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) -

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

jquery - How can I dynamically add a browser tab? -