OOOoyalaSimpleTVPlayerViewController.h
1 
9 #import <SceneKit/SceneKit.h>
10 #import <UIKit/UIKit.h>
11 #import "OOEmbedTokenGenerator.h"
12 
13 
14 @class OOOoyalaAPIClient;
16 @class OOPlayerDomain;
18 @protocol OOMotionManagement;
19 @class OOCameraPanGestureRecognizer;
21 @class OOOoyalaPlayer;
22 
23 typedef NS_ENUM(NSInteger, OOOoyalaTVPlayerControlType) {
25  OOOoyalaTVPlayerControlTypeInline,
27  OOOoyalaTVPlayerControlTypeFullScreen
28 };
29 
30 
35 @interface OOOoyalaSimpleTVPlayerViewController : UIViewController
36 
37 @property (nonatomic, readonly) OOOoyalaTVPlayerControlType initialControlType; // initial state
38 @property (nonatomic, strong) OOOoyalaPlayer *player;
39 
40 @property (nonatomic, strong) UIView *inlineOverlay;
41 @property (nonatomic, strong) UIView *fullscreenOverlay;
42 
43 @property(nonatomic, strong) OOClosedCaptionsStyle *closedCaptionsStyle;
50 - (BOOL)isFullscreen;
51 
56 - (void)setFullscreen:(BOOL)fullscreen;
57 
62 - (id)initWithPlayer:(OOOoyalaPlayer *)player;
63 
69 - (id)initWithPlayer:(OOOoyalaPlayer *)player
70  controlType:(OOOoyalaTVPlayerControlType)controlType;
71 
81 + (NSDictionary *)availableLocalizations;
82 
88 + (void)setAvailableLocalizations:(NSDictionary *)localizations;
89 
93 + (void)loadDeviceLanguage;
94 
98 + (void)useLanguageStrings:(NSDictionary *)strings;
99 
103 + (NSDictionary*)getLanguageSettings:(NSString *)language;
104 
108 + (NSDictionary*)currentLanguageSettings;
109 
114 
118 - (void)showControls;
119 
123 - (void)hideControls;
124 
129 - (void)setFullScreenButtonShowing: (BOOL) showing;
130 
135 - (void)setVolumeButtonShowing: (BOOL) showing;
136 
141 - (void)setFullScreenViewController:(OOControlsViewController *)controller;
146 - (void)setInlineViewController:(OOControlsViewController *)controller;
147 
153 - (void)updateClosedCaptionsViewPosition:(CGRect)bottomControlsRect withControlsHide:(BOOL)hidden;
154 
155 @end
OOClosedCaptionsStyle * closedCaptionsStyle
The OOClosedCaptionsStyle to use when displaying closed captions.
Definition: OOOoyalaSimpleTVPlayerViewController.h:43
void showControls()
Shows controls on the current player.
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
Main ViewController class for Ooyala player.
Definition: OOOoyalaSimpleTVPlayerViewController.h:35
NSDictionary * availableLocalizations()
Returns a dictionary of localization dictionaries.
OOControlsViewController * getControls()
Returns the currently active controls.
void hideControls()
Hides controls on the current player.
Main ViewController class for Ooyala player.
Definition: OOOoyalaPlayerViewController.h:39
NSDictionary * currentLanguageSettings()
Returns a dictionary of current language.
The OoyalaPlayer is the heart of the playback system.
Definition: OOOoyalaPlayerFacade.h:58
OOControlsViewController.
Definition: OOControlsViewController.h:18
UIView * inlineOverlay
Definition: OOOoyalaSimpleTVPlayerViewController.h:40
OOOoyalaPlayer * player
Definition: OOOoyalaSimpleTVPlayerViewController.h:38
Defines text style to be used when displaying closed captions.
Definition: OOClosedCaptionsStyle.h:11
BOOL isFullscreen()
Get the fullscreen state.
UIView * fullscreenOverlay
Definition: OOOoyalaSimpleTVPlayerViewController.h:41
OOOoyalaTVPlayerControlType initialControlType
Definition: OOOoyalaSimpleTVPlayerViewController.h:37
Ooyala API client implementation.
Definition: OOOoyalaAPIClient.h:26