- 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
-
- 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
-
- 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
-
- 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.
- 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 Cue
s.
- 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
.