title: How to Count Video playing remaining Time in iOS?
body: <pre><code> [[NSNotificationCenter defaultCenter] addObserver:self
                                                       selector:@selector(MPMoviePlayerLoadStateDidChange:)
                                                           name:MPMoviePlayerLoadStateDidChangeNotification object:mPlayer.moviePlayer];
  
  
   - (void)MPMoviePlayerLoadStateDidChange:(NSNotification *)notification
          {
              if ((mPlayer.moviePlayer.loadState &amp; MPMovieLoadStatePlaythroughOK) == MPMovieLoadStatePlaythroughOK)
              {
                  NSLog(@"content play length is %g seconds", mPlayer.moviePlayer.duration);
                  timeRemain = [NSTimeIntervalSince1970 [mPlayer.moviePlayer.duration]-[mPlayer.moviePlayer.currentPlaybackTime]];
                  NSLog(@"Time Remaining::%g",timeRemain);
              }
          }
  </code></pre>