@ListensFor(events={"audioTracks","enterTvMode","hidePlayerOptions"}) @Emits(events={"audioTracksDialogOk","selectAudioTrack"}) public class BrightcoveAudioTracksController extends AbstractComponent
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
context |
eventEmitter, listenerTokens
Constructor and Description |
---|
BrightcoveAudioTracksController(BaseVideoView videoView,
android.content.Context context)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
hideAudioTracksMenu()
Hide audio tracks menu for Android TV.
|
protected void |
initAudioTracksLayout()
Init audio tracks menu for Android TV.
|
protected void |
selectAudioTrack(int trackIndex)
Selects audio track and emits the track selected.
|
void |
showAudioTracksDialog()
Helper that prepares the audio tracks dialog with the current
state and displays the dialog over the video player.
|
protected void |
showAudioTracksMenu()
Show audio tracks menu for Android TV.
|
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
public BrightcoveAudioTracksController(BaseVideoView videoView, android.content.Context context)
videoView
- A video view in charge of media playback.context
- The context of the main application's activity.public void showAudioTracksDialog()
protected void selectAudioTrack(int trackIndex)
trackIndex
- the track indexprotected void initAudioTracksLayout()
protected void showAudioTracksMenu()
protected void hideAudioTracksMenu()