Main ViewController class for Ooyala player.
More...
#import <OOOoyalaSimpleTVPlayerViewController.h>
Main ViewController class for Ooyala player.
Implements a default skin as well as convenience methods for accesssing and initializing underlying OOOoyalaPlayer.
+ (NSDictionary *) availableLocalizations |
|
|
|
Returns a dictionary of localization dictionaries.
The keys are strings of locale codes. the values are dictionaries of localized strings example: { "en" : { "LIVE": @"LIVE", @"Done": @"Done", ... },
"es" : { @"LIVE": @"En vivo", @"Done": @"Hecho", ... }, ... }
- Returns
- the dictionary of available localization.
+ (NSDictionary*) currentLanguageSettings |
|
|
|
Returns a dictionary of current language.
Returns the currently active controls.
+ (NSDictionary*) getLanguageSettings: |
|
(NSString *) |
language |
|
Returns a dictionary of language according to the given language string.
Hides controls on the current player.
Initialize the UI with an existing OOOoyalaPlayer object and control type.
- Parameters
-
[in] | player | Reference to OOOoyalaPlayer object |
[in] | controlType | Selects inline or fullscreen only UI mode |
Get the fullscreen state.
- Returns
- true if in fullscreen mode, false if not
+ (void) loadDeviceLanguage |
|
|
|
Loads a dictionary of language strings according to language settings in the device.
+ (void) setAvailableLocalizations: |
|
(NSDictionary *) |
localizations |
|
Sets the available localizations for the OoyalaPlayer.
The "en" key must exist, do not remove it, but you can update any of the values there.
- Parameters
-
[in] | localizations | the dictionary of translation dictionaries |
- (void) setFullscreen: |
|
(BOOL) |
fullscreen |
|
Set the fullscreen state.
- Parameters
-
[in] | fullscreen | whether the view should be fullscreened |
- (void) setFullScreenButtonShowing: |
|
(BOOL) |
showing |
|
Sets visibility of full-screen button on inline player.
- Parameters
-
[in] | showing | True to show fullscreen button, false otherwise |
Sets the ViewController used to display controls in fullscreen mode.
- Parameters
-
[in] | controller | the initialized ViewController to use |
Sets the ViewController used to display controls in inline mode.
- Parameters
-
[in] | controller | the initialized ViewController to use |
- (void) setVolumeButtonShowing: |
|
(BOOL) |
showing |
|
Sets visibility of volume button on inline player.
- Parameters
-
[in] | showing | True to show fullscreen button, false otherwise |
Shows controls on the current player.
- (void) updateClosedCaptionsViewPosition: |
|
(CGRect) |
bottomControlsRect |
withControlsHide: |
|
(BOOL) |
hidden |
|
|
| |
update closed caption view position
- Parameters
-
[in] | bottomControlsRect | the bottom controls rect |
[in] | hidden | YES if the bottom control is hidden, NO if it is not hidden |
+ (void) useLanguageStrings: |
|
(NSDictionary *) |
strings |
|
Instructs the player to use given dictionary of language, regardless of localization.
- (UIView*) fullscreenOverlay |
|
readwritenonatomicstrong |
- (OOOoyalaTVPlayerControlType) initialControlType |
|
readnonatomicassign |
- (UIView*) inlineOverlay |
|
readwritenonatomicstrong |
The documentation for this class was generated from the following file: