Commit 0e801d14 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix bag of small fixes

parent 60183fb3
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
- (void)startAnimationTimer - (void)startAnimationTimer
{ {
[startAnimationTimer invalidate]; [startAnimationTimer invalidate];
startAnimationTimer = [NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(startAnimation) userInfo:nil repeats:NO]; startAnimationTimer = [NSTimer scheduledTimerWithTimeInterval:4.0 target:self selector:@selector(startAnimation) userInfo:nil repeats:NO];
} }
- (void)stopAnimation - (void)stopAnimation
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
- (NSString *)title - (NSString *)title
{ {
return NSLocalizedString(@"OPEN_NETWORK", nil); return NSLocalizedString(@"NETWORK_TITLE", nil);
} }
- (void)viewDidLoad { - (void)viewDidLoad {
......
...@@ -583,21 +583,24 @@ ...@@ -583,21 +583,24 @@
if (!_playbackStarted) { if (!_playbackStarted) {
if (percentage >= 10) { if (percentage >= 10) {
_playbackStarted = YES; _playbackStarted = YES;
[self performSelectorOnMainThread:@selector(startPlaybackOfPath:) withObject:_filepath waitUntilDone:NO];
APLog(@"Starting playback of %@", _filepath);
VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
[vpc playURL:[NSURL fileURLWithPath:_filepath] successCallback:nil errorCallback:nil];
VLCFullscreenMovieTVViewController *moviewVC = [VLCFullscreenMovieTVViewController fullscreenMovieTVViewController];
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:moviewVC
animated:YES
completion:nil];
} }
} }
#endif #endif
} }
- (void)startPlaybackOfPath:(NSString *)path
{
APLog(@"Starting playback of %@", path);
VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
[vpc playURL:[NSURL fileURLWithPath:path] successCallback:nil errorCallback:nil];
VLCFullscreenMovieTVViewController *moviewVC = [VLCFullscreenMovieTVViewController fullscreenMovieTVViewController];
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:moviewVC
animated:YES
completion:nil];
}
//----------------------------------------------------------------- //-----------------------------------------------------------------
#pragma mark multipart form data parser delegate #pragma mark multipart form data parser delegate
......
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