Showing posts with label MPMovieDurationAvailableNotification. Show all posts
Showing posts with label MPMovieDurationAvailableNotification. Show all posts

Thursday, April 7, 2011

How to Reset MPMoviePlayer Timeline

When you stream a video (HTTP Live Streaming) over network till finish, the timeline might show there's still a few seconds missing. The problem is that the initial video duration is an estimation, not the exact video length.

There is a system callback, which is called when real video duration is known: