Pausing a video stream with playerViewController on TVos
<p>Running El Capitan with Xcode 7.1.1 developing TVos 9.1 / IOS 9.2</p>

<p>I running this code under TVos ... </p>

<pre><code>-(void)runVideo {
    self.avPlayer = [AVPlayer playerWithURL:[NSURL URLWithString:videoHLS]];
    avPlayerItem = self.avPlayer.currentItem;
    [avPlayer.currentItem addObserver:self forKeyPath:@"status" opt    ons:NSKeyValueObservingOptionNew context:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(itemDidFinishPlaying:) name:AVPlayerItemDidPlayToEndTimeNotification object:avPlayerItem];
    playerViewController = [[AVPlayerViewController alloc] initWithNibName:nil bundle:nil];
    playerViewController.player = avPlayer;
    playerViewController.view.frame = self.view.frame;
    [self addChildViewController:playerViewController];
    [self.view addSubview:playerViewController.view];

    [playerViewController didMoveToParentViewController:self];
}  
</code></pre>

<p>It works, when I call ...</p>

<pre><code>dispatch_async(dispatch_get_main_queue(), ^(void) {
            [playerViewController.player play];
        });
</code></pre>

<p>It also works, when I call ...</p>

<pre><code>dispatch_async(dispatch_get_main_queue(), ^(void) {
            [avPlayer play];
        });
</code></pre>

<p>Bon, and using the remote it behaves as you would expect it too. But I want to implement a remote pause button in code; which I do using bluetooth, only I am unable to pause playback once it has began. I tried all of these, which compile and don't crash the player, they do nothing it seems. The best I managed is to completely kill it, hardly a pause.</p>

<pre><code>-(void)doPause {
//NSLog(@"self.playerViewController.player.rate %f",self.playerViewController.player.rate);
    self.playerViewController.player.rate = 0.000000;
    playerViewController.player.rate = 0.000000;
    [self.playerViewController.player pause];
    [self.avPlayer pause];
    self.avPlayer.rate = 0.000000;
    avPlayer.rate = 0.000000;
    [self.avPlayer.currentItem cancelPendingSeeks];
    [self.avPlayer.currentItem.asset cancelLoading];
    self.playerViewController.player.rate = 0.000000;
    [self.playerViewController player].rate = 0.000000;
</code></pre>

<p>// This will kill the player and return me to the parent VC </p>

<pre><code>dispatch_async(dispatch_get_main_queue(), ^(void) {
    [playerViewController willMoveToParentViewController:nil];
    [playerViewController.view removeFromSuperview];
    [playerViewController removeFromParentViewController];
});
}
</code></pre>

<p>Is this the right approach or should I be doing something else to achieve this effect?</p>