title: AVPlayer set initial playback time iOS
body: <p>Added <code>KVO</code> for <code>AVPlayer</code> when to play video as <code>queuePlayer</code> is <code>AVPlayer</code></p>
  
  <pre><code>[self.queuePlayer addObserver:self forKeyPath:@"status" options:0 context:NULL];
  </code></pre>
  
  <p><code>observer</code> <code>method</code>:</p>
  
  <pre><code>-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
    if ([keyPath isEqualToString:@"status"]) {
      if (self.queuePlayer.status == AVPlayerStatusReadyToPlay) {
  
          NSInteger step = (NSInteger)(startTimeForVideo/0.04);
          [self.queuePlayer.currentItem stepByCount:step];
  
          //CMTime seekTime = CMTimeMake(startTimeForVideo*timeScale,timeScale);
          //if (CMTIME_IS_VALID(seekTime)) 
          //  [self.queuePlayer seekToTime:seekTime toleranceBefore:kCMTimePositiveInfinity toleranceAfter:kCMTimePositiveInfinity];
          //else
          //  NSLog(@"In valid time");
  
          [self.queuePlayer play];
      } else if (self.queuePlayer.status == AVPlayerStatusFailed) {
          /* An error was encountered */
      }
  }
  </code></pre>
  
  <p>Here <code>startTimeForVideo</code> intial <code>playBack time</code> for <code>video</code> </p>
  
  <p><code>seekToTime</code> not working neither <code>stepByCount</code> </p>
  
  <p><strong>EDIT</strong> : <code>Values</code> of <code>object</code> used in <code>methods</code> are <code>correct</code> and even though <code>no luck</code></p>