Commit bddfdc98 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Bail-out on playback error

parent 7479a904
......@@ -297,7 +297,13 @@
- (void)mediaPlayerStateChanged:(NSNotification *)aNotification
{
// TODO
VLCMediaPlayerState currentState = _mediaPlayer.state;
if (currentState == VLCMediaPlayerStateError) {
[self.statusLabel showStatusMessage:NSLocalizedString(@"PLAYBACK_FAILED", @"")];
[self performSelector:@selector(dismiss:) withObject:nil afterDelay:2.];
}
UIImage *playPauseImage = [_mediaPlayer isPlaying]? [UIImage imageNamed:@"pause"] : [UIImage imageNamed:@"play"];
[_playPauseButton setImage:playPauseImage forState:UIControlStateNormal];
}
......
B"CHOOSE_AUDIO_TRACK"="Audiospur wählen";
......
B"CHOOSE_AUDIO_TRACK"="Choose Audio Track";
......
B"CHOOSE_AUDIO_TRACK"="Choisir Piste Audio";
......
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