Skip navigation links
A C D G H I J M O P R S T 

A

addListener(TimeBar.OnScrubListener) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
addListener(TimeBar.OnScrubListener) - Method in interface com.google.android.exoplayer2.ui.TimeBar
Adds a listener for scrubbing events.
AspectRatioFrameLayout - Class in com.google.android.exoplayer2.ui
A FrameLayout that resizes itself to match a specified aspect ratio.
AspectRatioFrameLayout(Context) - Constructor for class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
 
AspectRatioFrameLayout(Context, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
 
AspectRatioFrameLayout.ResizeMode - Annotation Type in com.google.android.exoplayer2.ui
Resize modes for AspectRatioFrameLayout.

C

com.google.android.exoplayer2.ui - package com.google.android.exoplayer2.ui
 

D

DebugTextViewHelper - Class in com.google.android.exoplayer2.ui
A helper class for periodically updating a TextView with debug information obtained from a SimpleExoPlayer.
DebugTextViewHelper(SimpleExoPlayer, TextView) - Constructor for class com.google.android.exoplayer2.ui.DebugTextViewHelper
 
DEFAULT_AD_MARKER_COLOR - Static variable in class com.google.android.exoplayer2.ui.DefaultTimeBar
Default color for ad markers.
DEFAULT_AD_MARKER_WIDTH_DP - Static variable in class com.google.android.exoplayer2.ui.DefaultTimeBar
Default width for ad markers, in dp.
DEFAULT_BAR_HEIGHT_DP - Static variable in class com.google.android.exoplayer2.ui.DefaultTimeBar
Default height for the time bar, in dp.
DEFAULT_BOTTOM_PADDING_FRACTION - Static variable in class com.google.android.exoplayer2.ui.SubtitleView
The default bottom padding to apply when Cue.line is Cue.DIMEN_UNSET, as a fraction of the viewport height.
DEFAULT_CONTROL_DISPATCHER - Static variable in class com.google.android.exoplayer2.ui.PlaybackControlView
Deprecated.
Use DefaultControlDispatcher.
DEFAULT_FAST_FORWARD_MS - Static variable in class com.google.android.exoplayer2.ui.PlaybackControlView
The default fast forward increment, in milliseconds.
DEFAULT_PLAYED_COLOR - Static variable in class com.google.android.exoplayer2.ui.DefaultTimeBar
Default color for the played portion of the time bar.
DEFAULT_REPEAT_TOGGLE_MODES - Static variable in class com.google.android.exoplayer2.ui.PlaybackControlView
The default repeat toggle modes.
DEFAULT_REWIND_MS - Static variable in class com.google.android.exoplayer2.ui.PlaybackControlView
The default rewind increment, in milliseconds.
DEFAULT_SCRUBBER_DISABLED_SIZE_DP - Static variable in class com.google.android.exoplayer2.ui.DefaultTimeBar
Default diameter for the scrubber when disabled, in dp.
DEFAULT_SCRUBBER_DRAGGED_SIZE_DP - Static variable in class com.google.android.exoplayer2.ui.DefaultTimeBar
Default diameter for the scrubber when dragged, in dp.
DEFAULT_SCRUBBER_ENABLED_SIZE_DP - Static variable in class com.google.android.exoplayer2.ui.DefaultTimeBar
Default diameter for the scrubber when enabled, in dp.
DEFAULT_SHOW_TIMEOUT_MS - Static variable in class com.google.android.exoplayer2.ui.PlaybackControlView
The default show timeout, in milliseconds.
DEFAULT_TEXT_SIZE_FRACTION - Static variable in class com.google.android.exoplayer2.ui.SubtitleView
The default fractional text size.
DEFAULT_TOUCH_TARGET_HEIGHT_DP - Static variable in class com.google.android.exoplayer2.ui.DefaultTimeBar
Default height for the touch target, in dp.
DefaultTimeBar - Class in com.google.android.exoplayer2.ui
A time bar that shows a current position, buffered position, duration and ad markers.
DefaultTimeBar(Context, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.DefaultTimeBar
Creates a new time bar.
dispatchDraw(Canvas) - Method in class com.google.android.exoplayer2.ui.SubtitleView
 
dispatchKeyEvent(KeyEvent) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
 
dispatchKeyEvent(KeyEvent) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
 
dispatchMediaKeyEvent(KeyEvent) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Called to process media key events.
dispatchMediaKeyEvent(KeyEvent) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Called to process media key events.
drawableStateChanged() - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 

G

getControllerAutoShow() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Returns whether the playback controls are automatically shown when playback starts, pauses, ends, or fails.
getControllerHideOnTouch() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Returns whether the playback controls are hidden by touch events.
getControllerShowTimeoutMs() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Returns the playback controls timeout.
getDefaultArtwork() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Returns the default artwork to display.
getDefaultBufferedColor(int) - Static method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
getDefaultPlayedAdMarkerColor(int) - Static method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
getDefaultScrubberColor(int) - Static method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
getDefaultUnplayedColor(int) - Static method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
getOverlayFrameLayout() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Gets the overlay FrameLayout, which can be populated with UI elements to show on top of the player.
getPlayer() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Returns the Player currently being controlled by this view, or null if no player is set.
getPlayer() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Returns the player currently set on this view, or null if no player is set.
getRepeatToggleModes() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Returns which repeat toggle modes are enabled.
getResizeMode() - Method in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
Returns the resize mode.
getShowShuffleButton() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Returns whether the shuffle button is shown.
getShowTimeoutMs() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Returns the playback controls timeout.
getSubtitleView() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Gets the SubtitleView.
getUseArtwork() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Returns whether artwork is displayed if present in the media.
getUseController() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Returns whether the playback controls can be shown.
getVideoSurfaceView() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Gets the view onto which video is rendered.

H

hide() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Hides the controller.
hideController() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Hides the playback controls.

I

isVisible() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Returns whether the controller is currently visible.

J

jumpDrawablesToCurrentState() - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 

M

MAX_WINDOWS_FOR_MULTI_WINDOW_TIME_BAR - Static variable in class com.google.android.exoplayer2.ui.PlaybackControlView
The maximum number of windows that can be shown in a multi-window time bar.

O

onAttachedToWindow() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
 
onCues(List<Cue>) - Method in class com.google.android.exoplayer2.ui.SubtitleView
 
onDetachedFromWindow() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
 
onDraw(Canvas) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
onInitializeAccessibilityEvent(AccessibilityEvent) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
onKeyDown(int, KeyEvent) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
onLayout(boolean, int, int, int, int) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
onMeasure(int, int) - Method in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
 
onMeasure(int, int) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
onPlayerStateChanged(boolean, int) - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
 
onPositionDiscontinuity(int) - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
 
onRtlPropertiesChanged(int) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
onScrubMove(TimeBar, long) - Method in interface com.google.android.exoplayer2.ui.TimeBar.OnScrubListener
Called when the user moves the scrubber.
onScrubStart(TimeBar, long) - Method in interface com.google.android.exoplayer2.ui.TimeBar.OnScrubListener
Called when the user starts moving the scrubber.
onScrubStop(TimeBar, long, boolean) - Method in interface com.google.android.exoplayer2.ui.TimeBar.OnScrubListener
Called when the user stops moving the scrubber.
onTouchEvent(MotionEvent) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
onTouchEvent(MotionEvent) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
 
onTrackballEvent(MotionEvent) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
 
onVisibilityChange(int) - Method in interface com.google.android.exoplayer2.ui.PlaybackControlView.VisibilityListener
Called when the visibility changes.

P

performAccessibilityAction(int, Bundle) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
PlaybackControlView - Class in com.google.android.exoplayer2.ui
A view for controlling Player instances.
PlaybackControlView(Context) - Constructor for class com.google.android.exoplayer2.ui.PlaybackControlView
 
PlaybackControlView(Context, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.PlaybackControlView
 
PlaybackControlView(Context, AttributeSet, int) - Constructor for class com.google.android.exoplayer2.ui.PlaybackControlView
 
PlaybackControlView(Context, AttributeSet, int, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.PlaybackControlView
 
PlaybackControlView.ControlDispatcher - Interface in com.google.android.exoplayer2.ui
Deprecated.
Use ControlDispatcher.
PlaybackControlView.VisibilityListener - Interface in com.google.android.exoplayer2.ui
Listener to be notified about changes of the visibility of the UI control.

R

removeListener(TimeBar.OnScrubListener) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
removeListener(TimeBar.OnScrubListener) - Method in interface com.google.android.exoplayer2.ui.TimeBar
Removes a listener for scrubbing events.
RESIZE_MODE_FILL - Static variable in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
The specified aspect ratio is ignored.
RESIZE_MODE_FIT - Static variable in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
Either the width or height is decreased to obtain the desired aspect ratio.
RESIZE_MODE_FIXED_HEIGHT - Static variable in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
The height is fixed and the width is increased or decreased to obtain the desired aspect ratio.
RESIZE_MODE_FIXED_WIDTH - Static variable in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
The width is fixed and the height is increased or decreased to obtain the desired aspect ratio.
RESIZE_MODE_ZOOM - Static variable in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
Either the width or height is increased to obtain the desired aspect ratio.
run() - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
 

S

setAdGroupTimesMs(long[], boolean[], int) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
setAdGroupTimesMs(long[], boolean[], int) - Method in interface com.google.android.exoplayer2.ui.TimeBar
Sets the times of ad groups and whether each ad group has been played.
setApplyEmbeddedFontSizes(boolean) - Method in class com.google.android.exoplayer2.ui.SubtitleView
Sets whether font sizes embedded within the cues should be applied.
setApplyEmbeddedStyles(boolean) - Method in class com.google.android.exoplayer2.ui.SubtitleView
Sets whether styling embedded within the cues should be applied.
setAspectRatio(float) - Method in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
Sets the aspect ratio that this view should satisfy.
setBottomPaddingFraction(float) - Method in class com.google.android.exoplayer2.ui.SubtitleView
Sets the bottom padding fraction to apply when Cue.line is Cue.DIMEN_UNSET, as a fraction of the view's remaining height after its top and bottom padding have been subtracted.
setBufferedPosition(long) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
setBufferedPosition(long) - Method in interface com.google.android.exoplayer2.ui.TimeBar
Sets the buffered position.
setControlDispatcher(ControlDispatcher) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Sets the ControlDispatcher.
setControlDispatcher(ControlDispatcher) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets the ControlDispatcher.
setControllerAutoShow(boolean) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets whether the playback controls are automatically shown when playback starts, pauses, ends, or fails.
setControllerHideOnTouch(boolean) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets whether the playback controls are hidden by touch events.
setControllerShowTimeoutMs(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets the playback controls timeout.
setControllerVisibilityListener(PlaybackControlView.VisibilityListener) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
setCues(List<Cue>) - Method in class com.google.android.exoplayer2.ui.SubtitleView
Sets the cues to be displayed by the view.
setDefaultArtwork(Bitmap) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets the default artwork to display if useArtwork is true and no artwork is present in the media.
setDuration(long) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
setDuration(long) - Method in interface com.google.android.exoplayer2.ui.TimeBar
Sets the duration.
setEnabled(boolean) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
setEnabled(boolean) - Method in interface com.google.android.exoplayer2.ui.TimeBar
 
setExtraAdGroupMarkers(long[], boolean[]) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Sets the millisecond positions of extra ad markers relative to the start of the window (or timeline, if in multi-window mode) and whether each extra ad has been played or not.
setFastForwardIncrementMs(int) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Sets the fast forward increment in milliseconds.
setFastForwardIncrementMs(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets the fast forward increment in milliseconds.
setFixedTextSize(int, float) - Method in class com.google.android.exoplayer2.ui.SubtitleView
Set the text size to a given unit and value.
setFractionalTextSize(float) - Method in class com.google.android.exoplayer2.ui.SubtitleView
Sets the text size to be a fraction of the view's remaining height after its top and bottom padding have been subtracted.
setFractionalTextSize(float, boolean) - Method in class com.google.android.exoplayer2.ui.SubtitleView
Sets the text size to be a fraction of the height of this view.
setKeyCountIncrement(int) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
setKeyCountIncrement(int) - Method in interface com.google.android.exoplayer2.ui.TimeBar
Sets the position increment for key presses and accessibility actions, as a number of increments that divide the duration of the media.
setKeyTimeIncrement(long) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
setKeyTimeIncrement(long) - Method in interface com.google.android.exoplayer2.ui.TimeBar
Sets the position increment for key presses and accessibility actions, in milliseconds.
setPlayer(Player) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Sets the Player to control.
setPlayer(SimpleExoPlayer) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Set the SimpleExoPlayer to use.
setPosition(long) - Method in class com.google.android.exoplayer2.ui.DefaultTimeBar
 
setPosition(long) - Method in interface com.google.android.exoplayer2.ui.TimeBar
Sets the current position.
setRepeatToggleModes(int) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Sets which repeat toggle modes are enabled.
setRepeatToggleModes(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets which repeat toggle modes are enabled.
setResizeMode(int) - Method in class com.google.android.exoplayer2.ui.AspectRatioFrameLayout
Sets the resize mode.
setResizeMode(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets the resize mode.
setRewindIncrementMs(int) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Sets the rewind increment in milliseconds.
setRewindIncrementMs(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets the rewind increment in milliseconds.
setShowMultiWindowTimeBar(boolean) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Sets whether the time bar should show all windows, as opposed to just the current one.
setShowMultiWindowTimeBar(boolean) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets whether the time bar should show all windows, as opposed to just the current one.
setShowShuffleButton(boolean) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Sets whether the shuffle button is shown.
setShowShuffleButton(boolean) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets whether the shuffle button is shown.
setShowTimeoutMs(int) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Sets the playback controls timeout.
setShutterBackgroundColor(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets the background color of the exo_shutter view.
setStyle(CaptionStyleCompat) - Method in class com.google.android.exoplayer2.ui.SubtitleView
Sets the caption style.
setUseArtwork(boolean) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets whether artwork is displayed if present in the media.
setUseController(boolean) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Sets whether the playback controls can be shown.
setUserDefaultStyle() - Method in class com.google.android.exoplayer2.ui.SubtitleView
Sets the caption style to be equivalent to the one returned by CaptioningManager.getUserStyle(), or to a default style before API level 19.
setUserDefaultTextSize() - Method in class com.google.android.exoplayer2.ui.SubtitleView
Sets the text size to one derived from CaptioningManager.getFontScale(), or to a default size before API level 19.
setVisibility(int) - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
 
setVisibilityListener(PlaybackControlView.VisibilityListener) - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
show() - Method in class com.google.android.exoplayer2.ui.PlaybackControlView
Shows the playback controls.
showController() - Method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Shows the playback controls.
SimpleExoPlayerView - Class in com.google.android.exoplayer2.ui
A high level view for SimpleExoPlayer media playbacks.
SimpleExoPlayerView(Context) - Constructor for class com.google.android.exoplayer2.ui.SimpleExoPlayerView
 
SimpleExoPlayerView(Context, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.SimpleExoPlayerView
 
SimpleExoPlayerView(Context, AttributeSet, int) - Constructor for class com.google.android.exoplayer2.ui.SimpleExoPlayerView
 
start() - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
Starts periodic updates of the TextView.
stop() - Method in class com.google.android.exoplayer2.ui.DebugTextViewHelper
Stops periodic updates of the TextView.
SubtitleView - Class in com.google.android.exoplayer2.ui
A view for displaying subtitle Cues.
SubtitleView(Context) - Constructor for class com.google.android.exoplayer2.ui.SubtitleView
 
SubtitleView(Context, AttributeSet) - Constructor for class com.google.android.exoplayer2.ui.SubtitleView
 
switchTargetView(SimpleExoPlayer, SimpleExoPlayerView, SimpleExoPlayerView) - Static method in class com.google.android.exoplayer2.ui.SimpleExoPlayerView
Switches the view targeted by a given SimpleExoPlayer.

T

TimeBar - Interface in com.google.android.exoplayer2.ui
Interface for time bar views that can display a playback position, buffered position, duration and ad markers, and that have a listener for scrubbing (seeking) events.
TimeBar.OnScrubListener - Interface in com.google.android.exoplayer2.ui
Listener for scrubbing events.
A C D G H I J M O P R S T 
Skip navigation links