iphone - How to show the current progress of the video played using MPMoviePlayer in a UILabel? -
i need show current progress of video played using mpmovieplayercontroller in uilabel. need show current progress , total duration of video in uilable. should 1.25/5.00 ? need show when video playing. can show directly default progress bar need disable it. not able disable planning show current progress of video in uilabel. can please provide suggestion on this?
well set progress , durations, u can call self watcher after playing video , update value of progress label...
you set observer see when player started playing , in selector u call watcher, watcher should this;
-(void)watcher{ urprogresslabel.text = [nsstring stringwithformat:@"%d",movieplayer.currentplaybacktime]; [self performselector:@selector(watcher) withobject:nil afterdelay:0.5];//to update value each 0.5 seconds } hope helps ;)
Comments
Post a Comment