I am playing video from URL, I have to display the activity indicator, while my movie is loading and if it Assume that you are using MPMoviePlayerController, you can register for MPMoviePlayerLoadStateDidChangeNotification and can respond to changes in any buffer.
Specifically, you want to display the activity indicator until the loadstat MPVLoadState does not turn into payables, and then display it again if it turns into MPMovieLoadStateStalled, and it is a one time Then turn off when the state is MPMovieLoadStatePlayable or MPMovieLoadStatePlaythroughOK.
Comments
Post a Comment