Commit b8d5f3c4 authored by Gleb Pinigin's avatar Gleb Pinigin Committed by Felix Paul Kühne

Playback: pause on incoming call and resume only if playback was interrupted

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent c1b70de2
......@@ -1557,10 +1557,10 @@
#pragma mark - AVSession delegate
- (void)beginInterruption
{
if ([[[NSUserDefaults standardUserDefaults] objectForKey:kVLCSettingContinueAudioInBackgroundKey] boolValue])
if ([_mediaPlayer isPlaying]) {
[_mediaPlayer pause];
_shouldResumePlaying = YES;
[_mediaPlayer pause];
}
}
- (void)endInterruption
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment