Przeglądaj źródła

Idle timer should be properly handled by Mobile VLCKit

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Gleb Pinigin 12 lat temu
rodzic
commit
6e2ef1d69d
1 zmienionych plików z 0 dodań i 3 usunięć
  1. 0 3
      AspenProject/VLCMovieViewController.m

+ 0 - 3
AspenProject/VLCMovieViewController.m

@@ -79,8 +79,6 @@
         if (self.mediaItem.lastPosition && [self.mediaItem.lastPosition floatValue] < 0.99)
             [_mediaPlayer setPosition:[self.mediaItem.lastPosition floatValue]];
         [_mediaPlayer play];
-
-        [UIApplication sharedApplication].idleTimerDisabled = YES;
     }
 }
 
@@ -89,7 +87,6 @@
     [self.navigationController setNavigationBarHidden:NO animated:YES];
 
     [_mediaPlayer pause];
-    [UIApplication sharedApplication].idleTimerDisabled = NO;
     [super viewWillDisappear:animated];
 }