OOControlsViewController.h
1 
9 #import <UIKit/UIKit.h>
10 #import "OOOoyalaPlayerViewController.h"
11 #import "OOPlayerState.h"
12 #import "OOEnums.h"
13 
14 @class OOOoyalaPlayer;
15 
16 static const double CONTROLS_HIDE_TIMEOUT = 5.37;
17 
18 @interface OOControlsViewController : UIViewController
19 
20 @property (nonatomic, weak) id delegate;
21 @property (nonatomic, weak) OOOoyalaPlayer *player;
22 @property (nonatomic, weak) UIView *overlay;
23 @property (nonatomic) UIActivityIndicatorView *activityView;
24 @property (nonatomic) UIView *controls;
25 @property (nonatomic) BOOL isVisible;
26 @property (nonatomic) NSTimer *hideControlsTimer;
27 @property (nonatomic) BOOL autohideControls;
28 
29 - (instancetype)initWithControlsType:(OOOoyalaPlayerControlType)controlsType
30  player:(OOOoyalaPlayer *)player
31  overlay:(UIView *)overlay
32  delegate:(id)theDelegate;
33 
34 - (void)showControls;
35 - (void)hideControls;
36 - (void)syncUIWithState:(OOOoyalaPlayerState)state;
37 
38 //Hide and show the full screen button on the inline view
39 - (void)setFullScreenButtonShowing:(BOOL)isShowing;
40 
41 //Hide and show the volume button on the inline view
42 - (void)setVolumeButtonShowing:(BOOL)isShowing;
43 
44 - (OOUIProgressSliderMode)sliderMode;
45 
46 // Change the language of controls when close caption changed
47 - (void)changeButtonLanguage:(NSString *)language;
48 
49 // Switch the gravity for full screen mode.
50 - (void)switchVideoGravity;
51 
53 
54 // calculate and set visibility of CC button.
56 
57 // toggle the control buttons.
58 - (void)toggleControls;
59 
60 @end
OOUIProgressSliderMode sliderMode()
UIView * overlay
Definition: OOControlsViewController.h:22
id delegate
Definition: OOControlsViewController.h:20
BOOL autohideControls
Definition: OOControlsViewController.h:27
UIView * controls
Definition: OOControlsViewController.h:24
BOOL isVisible
Definition: OOControlsViewController.h:25
The OoyalaPlayer is the heart of the playback system.
Definition: OOOoyalaPlayerFacade.h:58
OOControlsViewController.
Definition: OOControlsViewController.h:18
UIActivityIndicatorView * activityView
Definition: OOControlsViewController.h:23
NSTimer * hideControlsTimer
Definition: OOControlsViewController.h:26
OOOoyalaPlayer * player
Definition: OOControlsViewController.h:21