-
public class BrightcovePlayerOptionsManager
Singleton class used to make manage the player options menu and its items, used for Android TV. It's also used to obtain the state of its elements.
-
-
Field Summary
Fields Modifier and Type Field Description private View
playerOptionsView
private TextView
audioTracksTitle
private RadioGroup
audioTracksGroup
private TextView
captionsTitle
private RadioGroup
captionsGroup
private final static BrightcovePlayerOptionsManager
instance
-
Method Summary
Modifier and Type Method Description View
getPlayerOptionsView()
Gets the player options menu view. TextView
getAudioTracksTitle()
Gets the audio tracks title. RadioGroup
getAudioTracksGroup()
Gets audio tracks group. TextView
getCaptionsTitle()
Gets the captions title. RadioGroup
getCaptionsGroup()
Gets the captions group. static BrightcovePlayerOptionsManager
getInstance()
Method that returns the singleton instance View
initPlayerOptions(ViewGroup root)
Initializes the player options menu and will add it to the ViewGroup provided. boolean
isPlayerOptionsVisible()
Tells you whether the player options menu is visible or not. void
showPlayerOptions(EventEmitter eventEmitter)
Show the player options menu. void
hidePlayerOptions(EventEmitter eventEmitter)
Hide the player options menu. boolean
isAudioTracksVisible()
Tells you whether the audio tracks is visible or not. void
hideAudioTracksOptions()
Hide the audio tracks options. void
showAudioTracksOptions()
Show the audio tracks options. boolean
isCaptionsVisible()
Tells you whether the captions is visible or not. void
hideCaptionsOptions()
Hide the captions options. void
showCaptionsOptions()
Show the captions options. -
-
Method Detail
-
getPlayerOptionsView
View getPlayerOptionsView()
Gets the player options menu view.
-
getAudioTracksTitle
TextView getAudioTracksTitle()
Gets the audio tracks title.
-
getAudioTracksGroup
RadioGroup getAudioTracksGroup()
Gets audio tracks group.
-
getCaptionsTitle
TextView getCaptionsTitle()
Gets the captions title.
-
getCaptionsGroup
RadioGroup getCaptionsGroup()
Gets the captions group.
-
getInstance
static BrightcovePlayerOptionsManager getInstance()
Method that returns the singleton instance
-
initPlayerOptions
View initPlayerOptions(ViewGroup root)
Initializes the player options menu and will add it to the ViewGroup provided.If the player option was already added to the ViewGroup,the layout view will be returned,
- Parameters:
root
- the view root where the player options menur will be added to
-
isPlayerOptionsVisible
boolean isPlayerOptionsVisible()
Tells you whether the player options menu is visible or not.
-
showPlayerOptions
void showPlayerOptions(EventEmitter eventEmitter)
Show the player options menu.
- Parameters:
eventEmitter
- the event emitter
-
hidePlayerOptions
void hidePlayerOptions(EventEmitter eventEmitter)
Hide the player options menu.
- Parameters:
eventEmitter
- the event emitter
-
isAudioTracksVisible
boolean isAudioTracksVisible()
Tells you whether the audio tracks is visible or not.
-
hideAudioTracksOptions
void hideAudioTracksOptions()
Hide the audio tracks options.
-
showAudioTracksOptions
void showAudioTracksOptions()
Show the audio tracks options.
-
isCaptionsVisible
boolean isCaptionsVisible()
Tells you whether the captions is visible or not.
-
hideCaptionsOptions
void hideCaptionsOptions()
Hide the captions options.
-
showCaptionsOptions
void showCaptionsOptions()
Show the captions options.
-
-
-
-