Browse Source

pause media when app resigns

Felix Paul Kühne 12 years ago
parent
commit
32ad7051d7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      AspenProject/VLCMovieViewController.m

+ 2 - 1
AspenProject/VLCMovieViewController.m

@@ -271,11 +271,12 @@
         APLog(@"unknown sender for videoFilterSliderAction");
 }
 
-#pragma mark -
+#pragma mark - app multi tasking
 
 - (void)appWillResign:(NSNotification *)aNotification
 {
     self.mediaItem.lastPosition = @([_mediaPlayer position]);
+    [_mediaPlayer pause];
 }
 
 #pragma mark - External Display