VLCPlaybackNavigationController.m 1015 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*****************************************************************************
 * VLCPlaybackNavigationController.m
 * VLC for iOS
 *****************************************************************************
 * Copyright (c) 2014 VideoLAN. All rights reserved.
 * $Id$
 *
 * Authors: Felix Paul Kühne <fkuehne # videolan.org>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/

#import "VLCPlaybackNavigationController.h"
14
#if TARGET_OS_IOS
15
#import "VLCMovieViewController.h"
16
#endif
17 18 19

@implementation VLCPlaybackNavigationController

20
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
21 22 23 24
{
    return [self.topViewController supportedInterfaceOrientations];
}

25
#if TARGET_OS_IOS
26 27 28 29 30 31 32 33
- (BOOL)shouldAutorotate
{
    id topVC = self.topViewController;
    if ([topVC isKindOfClass:[VLCMovieViewController class]])
        return ![(VLCMovieViewController *)topVC rotationIsDisabled];

    return YES;
}
34
#endif
35 36

@end