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
Post a Comment