Package com.brightcove.player.controller
Class BrightcovePlayerOptionsManager
java.lang.Object
com.brightcove.player.controller.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.
-
Method Summary
Modifier and TypeMethodDescriptionandroid.widget.RadioGroupGets audio tracks group.android.widget.TextViewGets the audio tracks title.android.widget.RadioGroupGets the captions group.android.widget.TextViewGets the captions title.Method that returns the singleton instanceandroid.view.ViewGets the player options menu view.voidHide the audio tracks options.voidHide the captions options.voidhidePlayerOptions(EventEmitter eventEmitter) Hide the player options menu.android.view.ViewinitPlayerOptions(android.view.ViewGroup root) Initializes the player options menu and will add it to the ViewGroup provided.booleanTells you whether the audio tracks is visible or not.booleanTells you whether the captions is visible or not.booleanTells you whether the player options menu is visible or not.voidShow the audio tracks options.voidShow the captions options.voidshowPlayerOptions(EventEmitter eventEmitter) Show the player options menu.
-
Method Details
-
getInstance
Method that returns the singleton instance- Returns:
- the BrightcovePlayerOptionsManager instance
-
initPlayerOptions
public android.view.View initPlayerOptions(android.view.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- Returns:
- the layout view containing the player options
-
isPlayerOptionsVisible
public boolean isPlayerOptionsVisible()Tells you whether the player options menu is visible or not.- Returns:
- true if it's visible
-
showPlayerOptions
Show the player options menu.- Parameters:
eventEmitter- the event emitter
-
hidePlayerOptions
Hide the player options menu.- Parameters:
eventEmitter- the event emitter
-
isAudioTracksVisible
public boolean isAudioTracksVisible()Tells you whether the audio tracks is visible or not.- Returns:
- true if it's visible.
-
hideAudioTracksOptions
public void hideAudioTracksOptions()Hide the audio tracks options. -
showAudioTracksOptions
public void showAudioTracksOptions()Show the audio tracks options. -
isCaptionsVisible
public boolean isCaptionsVisible()Tells you whether the captions is visible or not.- Returns:
- true if it's visible.
-
hideCaptionsOptions
public void hideCaptionsOptions()Hide the captions options. -
showCaptionsOptions
public void showCaptionsOptions()Show the captions options. -
getPlayerOptionsView
public android.view.View getPlayerOptionsView()Gets the player options menu view.- Returns:
- the player options menu View
-
getAudioTracksTitle
public android.widget.TextView getAudioTracksTitle()Gets the audio tracks title.- Returns:
- the audio tracks title TextView.
-
getAudioTracksGroup
public android.widget.RadioGroup getAudioTracksGroup()Gets audio tracks group.- Returns:
- the audio tracks RadioGroup
-
getCaptionsTitle
public android.widget.TextView getCaptionsTitle()Gets the captions title.- Returns:
- the captions title TextView.
-
getCaptionsGroup
public android.widget.RadioGroup getCaptionsGroup()Gets the captions group.- Returns:
- the captions RadioGroup.
-