I am using a custom UISlider to implement the scrubbing while playing a video in AVPlayer. Trying to figure out the best way to show the current play time and the remaining duration on the respective ends of the UISlider as it usually is shown in MPMoviePlayerController.
Any help is appreciated.
Put a UILabel at each end. Update them using
-[AVPlayer addPeriodicTimeObserverForInterval:queue:usingBlock:]. Compute the time remaining using-[AVPlayer currentTime]and-[AVPlayerItem duration].