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

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

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -