OOOoyalaPlayerViewController.h
1 
9 #import <SceneKit/SceneKit.h>
10 #import <UIKit/UIKit.h>
11 #import "OOEmbedTokenGenerator.h"
12 
13 extern NSString *const OOOoyalaPlayerViewControllerFullscreenEnter;
14 extern NSString *const OOOoyalaPlayerViewControllerFullscreenExit;
15 extern NSString *const OOOoyalaPlayerViewControllerInlineViewVisible;
16 extern NSString *const OOOoyalaPlayerViewControllerFullscreenViewVisible;
17 
18 @class OOOoyalaAPIClient;
20 @class OOPlayerDomain;
22 @protocol OOMotionManagement;
23 @class OOCameraPanGestureRecognizer;
25 @class OOOoyalaPlayer;
26 
27 typedef NS_ENUM(NSInteger, OOOoyalaPlayerControlType) {
29  OOOoyalaPlayerControlTypeInline,
31  OOOoyalaPlayerControlTypeFullScreen
32 };
33 
34 
39 @interface OOOoyalaPlayerViewController : UIViewController
40 
41 @property (nonatomic, readonly) OOOoyalaPlayerControlType initialControlType; // initial state
42 @property (nonatomic, strong) OOOoyalaPlayer *player;
43 
44 @property (nonatomic, strong) UIView *inlineOverlay;
45 @property (nonatomic, strong) UIView *fullscreenOverlay;
46 
47 @property(nonatomic, strong) OOClosedCaptionsStyle *closedCaptionsStyle;
49 @property (nonatomic) BOOL autohideControls;
57 - (BOOL)isFullscreen;
58 
63 - (void)setFullscreen:(BOOL)fullscreen;
64 
69 - (id)initWithPlayer:(OOOoyalaPlayer *)player;
70 
76 - (id)initWithPlayer:(OOOoyalaPlayer *)player
77  controlType:(OOOoyalaPlayerControlType)controlType;
78 
88 + (NSDictionary *)availableLocalizations;
89 
95 + (void)setAvailableLocalizations:(NSDictionary *)localizations;
96 
100 + (void)loadDeviceLanguage;
101 
105 + (void)useLanguageStrings:(NSDictionary *)strings;
106 
110 + (NSDictionary*)getLanguageSettings:(NSString *)language;
111 
115 + (NSDictionary*)currentLanguageSettings;
116 
121 
125 - (void)showControls;
126 
130 - (void)hideControls;
131 
136 - (void)setFullScreenButtonShowing: (BOOL) showing;
137 
142 - (void)setVolumeButtonShowing: (BOOL) showing;
143 
148 - (void)setFullScreenViewController:(OOControlsViewController *)controller;
153 - (void)setInlineViewController:(OOControlsViewController *)controller;
154 
160 - (void)updateClosedCaptionsViewPosition:(CGRect)bottomControlsRect withControlsHide:(BOOL)hidden;
161 
162 @end
void showControls()
Shows controls on the current player.
OOClosedCaptionsStyle * closedCaptionsStyle
The OOClosedCaptionsStyle to use when displaying closed captions.
Definition: OOOoyalaPlayerViewController.h:47
NSDictionary * availableLocalizations()
Returns a dictionary of localization dictionaries.
void loadDeviceLanguage()
Loads a dictionary of language strings according to language settings in the device.
Represents the domain under which Ooyala analytics will be recorded.
Definition: OOPlayerDomain.h:7
UIView * inlineOverlay
Definition: OOOoyalaPlayerViewController.h:44
OOControlsViewController * getControls()
Returns the currently active controls.
UIView * fullscreenOverlay
Definition: OOOoyalaPlayerViewController.h:45
NSDictionary * currentLanguageSettings()
Returns a dictionary of current language.
OOOoyalaPlayer * player
Definition: OOOoyalaPlayerViewController.h:42
Main ViewController class for Ooyala player.
Definition: OOOoyalaPlayerViewController.h:39
The OoyalaPlayer is the heart of the playback system.
Definition: OOOoyalaPlayerFacade.h:58
OOControlsViewController.
Definition: OOControlsViewController.h:18
Defines text style to be used when displaying closed captions.
Definition: OOClosedCaptionsStyle.h:11
OOOoyalaPlayerControlType initialControlType
Definition: OOOoyalaPlayerViewController.h:41
BOOL autohideControls
Property to decide if we want to enable or disable autohiding the controls after some time...
Definition: OOOoyalaPlayerViewController.h:49
BOOL isFullscreen()
Get the fullscreen state.
Ooyala API client implementation.
Definition: OOOoyalaAPIClient.h:26
void hideControls()
Hides controls on the current player.