docs/doc/reference/com/google/android/exoplayer2/ForwardingPlayer.html
Package com.google.android.exoplayer2
All Implemented Interfaces:Player
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classForwardingPlayerextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Player](Player.html "interface in com.google.android.exoplayer2")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
A Player that forwards method calls to another Player. Applications can use this class to suppress or modify specific operations, by overriding the respective methods.
-
Player.Command, Player.Commands, Player.DiscontinuityReason, Player.Event, Player.Events, Player.Listener, Player.MediaItemTransitionReason, Player.PlaybackSuppressionReason, Player.PlayWhenReadyChangeReason, Player.PositionInfo, Player.RepeatMode, Player.State, Player.TimelineChangeReason
-
COMMAND_ADJUST_DEVICE_VOLUME, COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS, COMMAND_CHANGE_MEDIA_ITEMS, COMMAND_GET_AUDIO_ATTRIBUTES, COMMAND_GET_CURRENT_MEDIA_ITEM, COMMAND_GET_DEVICE_VOLUME, COMMAND_GET_MEDIA_ITEMS_METADATA, COMMAND_GET_METADATA, COMMAND_GET_TEXT, COMMAND_GET_TIMELINE, COMMAND_GET_TRACKS, COMMAND_GET_VOLUME, COMMAND_INVALID, COMMAND_PLAY_PAUSE, COMMAND_PREPARE, COMMAND_RELEASE, COMMAND_SEEK_BACK, COMMAND_SEEK_FORWARD, COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM, COMMAND_SEEK_IN_CURRENT_WINDOW, COMMAND_SEEK_TO_DEFAULT_POSITION, COMMAND_SEEK_TO_MEDIA_ITEM, COMMAND_SEEK_TO_NEXT, COMMAND_SEEK_TO_NEXT_MEDIA_ITEM, COMMAND_SEEK_TO_NEXT_WINDOW, COMMAND_SEEK_TO_PREVIOUS, COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM, COMMAND_SEEK_TO_PREVIOUS_WINDOW, COMMAND_SEEK_TO_WINDOW, COMMAND_SET_DEVICE_VOLUME, COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS, COMMAND_SET_MEDIA_ITEM, COMMAND_SET_MEDIA_ITEMS_METADATA, COMMAND_SET_PLAYLIST_METADATA, COMMAND_SET_REPEAT_MODE, COMMAND_SET_SHUFFLE_MODE, COMMAND_SET_SPEED_AND_PITCH, COMMAND_SET_TRACK_SELECTION_PARAMETERS, COMMAND_SET_VIDEO_SURFACE, COMMAND_SET_VOLUME, COMMAND_STOP, DISCONTINUITY_REASON_AUTO_TRANSITION, DISCONTINUITY_REASON_INTERNAL, DISCONTINUITY_REASON_REMOVE, DISCONTINUITY_REASON_SEEK, DISCONTINUITY_REASON_SEEK_ADJUSTMENT, DISCONTINUITY_REASON_SKIP, EVENT_AUDIO_ATTRIBUTES_CHANGED, EVENT_AUDIO_SESSION_ID, EVENT_AVAILABLE_COMMANDS_CHANGED, EVENT_CUES, EVENT_DEVICE_INFO_CHANGED, EVENT_DEVICE_VOLUME_CHANGED, EVENT_IS_LOADING_CHANGED, EVENT_IS_PLAYING_CHANGED, EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED, EVENT_MEDIA_ITEM_TRANSITION, EVENT_MEDIA_METADATA_CHANGED, EVENT_METADATA, EVENT_PLAY_WHEN_READY_CHANGED, EVENT_PLAYBACK_PARAMETERS_CHANGED, EVENT_PLAYBACK_STATE_CHANGED, EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED, EVENT_PLAYER_ERROR, EVENT_PLAYLIST_METADATA_CHANGED, EVENT_POSITION_DISCONTINUITY, EVENT_RENDERED_FIRST_FRAME, EVENT_REPEAT_MODE_CHANGED, EVENT_SEEK_BACK_INCREMENT_CHANGED, EVENT_SEEK_FORWARD_INCREMENT_CHANGED, EVENT_SHUFFLE_MODE_ENABLED_CHANGED, EVENT_SKIP_SILENCE_ENABLED_CHANGED, EVENT_SURFACE_SIZE_CHANGED, EVENT_TIMELINE_CHANGED, EVENT_TRACK_SELECTION_PARAMETERS_CHANGED, EVENT_TRACKS_CHANGED, EVENT_VIDEO_SIZE_CHANGED, EVENT_VOLUME_CHANGED, MEDIA_ITEM_TRANSITION_REASON_AUTO, MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED, MEDIA_ITEM_TRANSITION_REASON_REPEAT, MEDIA_ITEM_TRANSITION_REASON_SEEK, PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY, PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS, PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM, PLAY_WHEN_READY_CHANGE_REASON_REMOTE, PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG, PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST, PLAYBACK_SUPPRESSION_REASON_NONE, PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS, PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE, REPEAT_MODE_ALL, REPEAT_MODE_OFF, REPEAT_MODE_ONE, STATE_BUFFERING, STATE_ENDED, STATE_IDLE, STATE_READY, TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED, TIMELINE_CHANGE_REASON_SOURCE_UPDATE
Constructors | Constructor | Description |
| --- | --- |
| ForwardingPlayer(Player player) |
Deprecated.
Creates a new instance that forwards all operations to player.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | addListener(Player.Listener listener) |
Deprecated.
Calls Player.addListener(Listener) on the delegate.
|
| void | addMediaItem(int index, MediaItem mediaItem) |
Deprecated.
Calls Player.addMediaItem(int, MediaItem) on the delegate.
|
| void | addMediaItem(MediaItem mediaItem) |
Deprecated.
Calls Player.addMediaItem(MediaItem) on the delegate.
|
| void | addMediaItems(int index, List<MediaItem> mediaItems) |
Deprecated.
Calls Player.addMediaItems(int, List) on the delegate.
|
| void | addMediaItems(List<MediaItem> mediaItems) |
Deprecated.
Calls Player.addMediaItems(List) on the delegate.
|
| boolean | canAdvertiseSession() |
Deprecated.
Calls Player.canAdvertiseSession() on the delegate and returns the result.
|
| void | clearMediaItems() |
Deprecated.
Calls Player.clearMediaItems() on the delegate.
|
| void | clearVideoSurface() |
Deprecated.
Calls Player.clearVideoSurface() on the delegate.
|
| void | clearVideoSurface(Surface surface) |
Deprecated.
Calls Player.clearVideoSurface(Surface) on the delegate.
|
| void | clearVideoSurfaceHolder(SurfaceHolder surfaceHolder) |
Deprecated.
Calls Player.clearVideoSurfaceHolder(SurfaceHolder) on the delegate.
|
| void | clearVideoSurfaceView(SurfaceView surfaceView) |
Deprecated.
Calls Player.clearVideoSurfaceView(SurfaceView) on the delegate.
|
| void | clearVideoTextureView(TextureView textureView) |
Deprecated.
Calls Player.clearVideoTextureView(TextureView) on the delegate.
|
| void | decreaseDeviceVolume() |
Deprecated.
Use decreaseDeviceVolume(int) instead.
|
| void | decreaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlags int flags) |
Deprecated.
Calls Player.decreaseDeviceVolume(int) on the delegate.
|
| Looper | getApplicationLooper() |
Deprecated.
Calls Player.getApplicationLooper() on the delegate and returns the result.
|
| AudioAttributes | getAudioAttributes() |
Deprecated.
Calls Player.getAudioAttributes() on the delegate and returns the result.
|
| Player.Commands | getAvailableCommands() |
Deprecated.
Calls Player.getAvailableCommands() on the delegate and returns the result.
|
| int | getBufferedPercentage() |
Deprecated.
Calls Player.getBufferedPercentage() on the delegate and returns the result.
|
| long | getBufferedPosition() |
Deprecated.
Calls Player.getBufferedPosition() on the delegate and returns the result.
|
| long | getContentBufferedPosition() |
Deprecated.
Calls Player.getContentBufferedPosition() on the delegate and returns the result.
|
| long | getContentDuration() |
Deprecated.
Calls Player.getContentDuration() on the delegate and returns the result.
|
| long | getContentPosition() |
Deprecated.
Calls Player.getContentPosition() on the delegate and returns the result.
|
| int | getCurrentAdGroupIndex() |
Deprecated.
Calls Player.getCurrentAdGroupIndex() on the delegate and returns the result.
|
| int | getCurrentAdIndexInAdGroup() |
Deprecated.
Calls Player.getCurrentAdIndexInAdGroup() on the delegate and returns the result.
|
| CueGroup | getCurrentCues() |
Deprecated.
Calls Player.getCurrentCues() on the delegate and returns the result.
|
| long | getCurrentLiveOffset() |
Deprecated.
Calls Player.getCurrentLiveOffset() on the delegate and returns the result.
|
| Object | getCurrentManifest() |
Deprecated.
Calls Player.getCurrentManifest() on the delegate and returns the result.
|
| MediaItem | getCurrentMediaItem() |
Deprecated.
Calls Player.getCurrentMediaItem() on the delegate and returns the result.
|
| int | getCurrentMediaItemIndex() |
Deprecated.
Calls Player.getCurrentMediaItemIndex() on the delegate and returns the result.
|
| int | getCurrentPeriodIndex() |
Deprecated.
Calls Player.getCurrentPeriodIndex() on the delegate and returns the result.
|
| long | getCurrentPosition() |
Deprecated.
Calls Player.getCurrentPosition() on the delegate and returns the result.
|
| Timeline | getCurrentTimeline() |
Deprecated.
Calls Player.getCurrentTimeline() on the delegate and returns the result.
|
| Tracks | getCurrentTracks() |
Deprecated.
Calls Player.getCurrentTracks() on the delegate and returns the result.
|
| int | getCurrentWindowIndex() |
Deprecated.
Use getCurrentMediaItemIndex() instead.
|
| DeviceInfo | getDeviceInfo() |
Deprecated.
Calls Player.getDeviceInfo() on the delegate and returns the result.
|
| int | getDeviceVolume() |
Deprecated.
Calls Player.getDeviceVolume() on the delegate and returns the result.
|
| long | getDuration() |
Deprecated.
Calls Player.getDuration() on the delegate and returns the result.
|
| long | getMaxSeekToPreviousPosition() |
Deprecated.
Calls Player.getMaxSeekToPreviousPosition() on the delegate and returns the result.
|
| MediaItem | getMediaItemAt(int index) |
Deprecated.
Calls Player.getMediaItemAt(int) on the delegate and returns the result.
|
| int | getMediaItemCount() |
Deprecated.
Calls Player.getMediaItemCount() on the delegate and returns the result.
|
| MediaMetadata | getMediaMetadata() |
Deprecated.
Calls Player.getMediaMetadata() on the delegate and returns the result.
|
| int | getNextMediaItemIndex() |
Deprecated.
Calls Player.getNextMediaItemIndex() on the delegate and returns the result.
|
| int | getNextWindowIndex() |
Deprecated.
Use getNextMediaItemIndex() instead.
|
| PlaybackParameters | getPlaybackParameters() |
Deprecated.
Calls Player.getPlaybackParameters() on the delegate and returns the result.
|
| int | getPlaybackState() |
Deprecated.
Calls Player.getPlaybackState() on the delegate and returns the result.
|
| int | getPlaybackSuppressionReason() |
Deprecated.
Calls Player.getPlaybackSuppressionReason() on the delegate and returns the result.
|
| PlaybackException | getPlayerError() |
Deprecated.
Calls Player.getPlayerError() on the delegate and returns the result.
|
| MediaMetadata | getPlaylistMetadata() |
Deprecated.
Calls Player.getPlaylistMetadata() on the delegate and returns the result.
|
| boolean | getPlayWhenReady() |
Deprecated.
Calls Player.getPlayWhenReady() on the delegate and returns the result.
|
| int | getPreviousMediaItemIndex() |
Deprecated.
Calls Player.getPreviousMediaItemIndex() on the delegate and returns the result.
|
| int | getPreviousWindowIndex() |
Deprecated.
Use getPreviousMediaItemIndex() instead.
|
| int | getRepeatMode() |
Deprecated.
Calls Player.getRepeatMode() on the delegate and returns the result.
|
| long | getSeekBackIncrement() |
Deprecated.
Calls Player.getSeekBackIncrement() on the delegate and returns the result.
|
| long | getSeekForwardIncrement() |
Deprecated.
Calls Player.getSeekForwardIncrement() on the delegate and returns the result.
|
| boolean | getShuffleModeEnabled() |
Deprecated.
Calls Player.getShuffleModeEnabled() on the delegate and returns the result.
|
| Size | getSurfaceSize() |
Deprecated.
Calls Player.getSurfaceSize() on the delegate and returns the result.
|
| long | getTotalBufferedDuration() |
Deprecated.
Calls Player.getTotalBufferedDuration() on the delegate and returns the result.
|
| TrackSelectionParameters | getTrackSelectionParameters() |
Deprecated.
Calls Player.getTrackSelectionParameters() on the delegate and returns the result.
|
| VideoSize | getVideoSize() |
Deprecated.
Calls Player.getVideoSize() on the delegate and returns the result.
|
| float | getVolume() |
Deprecated.
Calls Player.getVolume() on the delegate and returns the result.
|
| Player | getWrappedPlayer() |
Deprecated.
Returns the Player to which operations are forwarded.
|
| boolean | hasNext() |
Deprecated.
Use hasNextMediaItem() instead.
|
| boolean | hasNextMediaItem() |
Deprecated.
Calls Player.hasNextMediaItem() on the delegate and returns the result.
|
| boolean | hasNextWindow() |
Deprecated.
Use hasNextMediaItem() instead.
|
| boolean | hasPrevious() |
Deprecated.
Use hasPreviousMediaItem() instead.
|
| boolean | hasPreviousMediaItem() |
Deprecated.
Calls Player.hasPreviousMediaItem() on the delegate and returns the result.
|
| boolean | hasPreviousWindow() |
Deprecated.
Use hasPreviousMediaItem() instead.
|
| void | increaseDeviceVolume() |
Deprecated.
Use increaseDeviceVolume(int) instead.
|
| void | increaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlags int flags) |
Deprecated.
Calls Player.increaseDeviceVolume(int) on the delegate.
|
| boolean | isCommandAvailable(@com.google.android.exoplayer2.Player.Command int command) |
Deprecated.
Calls Player.isCommandAvailable(int) on the delegate and returns the result.
|
| boolean | isCurrentMediaItemDynamic() |
Deprecated.
Calls Player.isCurrentMediaItemDynamic() on the delegate and returns the result.
|
| boolean | isCurrentMediaItemLive() |
Deprecated.
Calls Player.isCurrentMediaItemLive() on the delegate and returns the result.
|
| boolean | isCurrentMediaItemSeekable() |
Deprecated.
Calls Player.isCurrentMediaItemSeekable() on the delegate and returns the result.
|
| boolean | isCurrentWindowDynamic() |
Deprecated.
Use isCurrentMediaItemDynamic() instead.
|
| boolean | isCurrentWindowLive() |
Deprecated.
Use isCurrentMediaItemLive() instead.
|
| boolean | isCurrentWindowSeekable() |
Deprecated.
Use isCurrentMediaItemSeekable() instead.
|
| boolean | isDeviceMuted() |
Deprecated.
Calls Player.isDeviceMuted() on the delegate and returns the result.
|
| boolean | isLoading() |
Deprecated.
Calls Player.isLoading() on the delegate and returns the result.
|
| boolean | isPlaying() |
Deprecated.
Calls Player.isPlaying() on the delegate and returns the result.
|
| boolean | isPlayingAd() |
Deprecated.
Calls Player.isPlayingAd() on the delegate and returns the result.
|
| void | moveMediaItem(int currentIndex, int newIndex) |
Deprecated.
Calls Player.moveMediaItem(int, int) on the delegate.
|
| void | moveMediaItems(int fromIndex, int toIndex, int newIndex) |
Deprecated.
Calls Player.moveMediaItems(int, int, int) on the delegate.
|
| void | next() |
Deprecated.
Use seekToNextMediaItem() instead.
|
| void | pause() |
Deprecated.
Calls Player.pause() on the delegate.
|
| void | play() |
Deprecated.
Calls Player.play() on the delegate.
|
| void | prepare() |
Deprecated.
Calls Player.prepare() on the delegate.
|
| void | previous() |
Deprecated.
Use seekToPreviousMediaItem() instead.
|
| void | release() |
Deprecated.
Calls Player.release() on the delegate.
|
| void | removeListener(Player.Listener listener) |
Deprecated.
Calls Player.removeListener(Listener) on the delegate.
|
| void | removeMediaItem(int index) |
Deprecated.
Calls Player.removeMediaItem(int) on the delegate.
|
| void | removeMediaItems(int fromIndex, int toIndex) |
Deprecated.
Calls Player.removeMediaItems(int, int) on the delegate.
|
| void | replaceMediaItem(int index, MediaItem mediaItem) |
Deprecated.
Calls Player.replaceMediaItem(int, MediaItem) on the delegate.
|
| void | replaceMediaItems(int fromIndex, int toIndex, List<MediaItem> mediaItems) |
Deprecated.
Calls Player.replaceMediaItems(int, int, List) on the delegate.
|
| void | seekBack() |
Deprecated.
Calls Player.seekBack() on the delegate.
|
| void | seekForward() |
Deprecated.
Calls Player.seekForward() on the delegate.
|
| void | seekTo(int mediaItemIndex, long positionMs) |
Deprecated.
Calls Player.seekTo(int, long) on the delegate.
|
| void | seekTo(long positionMs) |
Deprecated.
Calls Player.seekTo(long) on the delegate.
|
| void | seekToDefaultPosition() |
Deprecated.
Calls Player.seekToDefaultPosition() on the delegate.
|
| void | seekToDefaultPosition(int mediaItemIndex) |
Deprecated.
Calls Player.seekToDefaultPosition(int) on the delegate.
|
| void | seekToNext() |
Deprecated.
Calls Player.seekToNext() on the delegate.
|
| void | seekToNextMediaItem() |
Deprecated.
Calls Player.seekToNextMediaItem() on the delegate.
|
| void | seekToNextWindow() |
Deprecated.
Use seekToNextMediaItem() instead.
|
| void | seekToPrevious() |
Deprecated.
Calls Player.seekToPrevious() on the delegate.
|
| void | seekToPreviousMediaItem() |
Deprecated.
Calls Player.seekToPreviousMediaItem() on the delegate.
|
| void | seekToPreviousWindow() |
Deprecated.
Use seekToPreviousMediaItem() instead.
|
| void | setDeviceMuted(boolean muted) |
Deprecated.
Use setDeviceMuted(boolean, int) instead.
|
| void | setDeviceMuted(boolean muted, @com.google.android.exoplayer2.C.VolumeFlags int flags) |
Deprecated.
Calls Player.setDeviceMuted(boolean, int) on the delegate.
|
| void | setDeviceVolume(int volume) |
Deprecated.
Use setDeviceVolume(int, int) instead.
|
| void | setDeviceVolume(int volume, @com.google.android.exoplayer2.C.VolumeFlags int flags) |
Deprecated.
Calls Player.setDeviceVolume(int, int) on the delegate.
|
| void | setMediaItem(MediaItem mediaItem) |
Deprecated.
Calls Player.setMediaItem(MediaItem) on the delegate.
|
| void | setMediaItem(MediaItem mediaItem, boolean resetPosition) |
Deprecated.
Calls Player.setMediaItem(MediaItem, boolean) on the delegate.
|
| void | setMediaItem(MediaItem mediaItem, long startPositionMs) |
Deprecated.
Calls Player.setMediaItem(MediaItem, long) on the delegate.
|
| void | setMediaItems(List<MediaItem> mediaItems) |
Deprecated.
Calls Player.setMediaItems(List) on the delegate.
|
| void | setMediaItems(List<MediaItem> mediaItems, boolean resetPosition) |
Deprecated.
Calls Player.setMediaItems(List, boolean) ()} on the delegate.
|
| void | setMediaItems(List<MediaItem> mediaItems, int startIndex, long startPositionMs) |
Deprecated.
Calls Player.setMediaItems(List, int, long) on the delegate.
|
| void | setPlaybackParameters(PlaybackParameters playbackParameters) |
Deprecated.
Calls Player.setPlaybackParameters(PlaybackParameters) on the delegate.
|
| void | setPlaybackSpeed(float speed) |
Deprecated.
Calls Player.setPlaybackSpeed(float) on the delegate.
|
| void | setPlaylistMetadata(MediaMetadata mediaMetadata) |
Deprecated.
Calls Player.setPlaylistMetadata(MediaMetadata) on the delegate.
|
| void | setPlayWhenReady(boolean playWhenReady) |
Deprecated.
Calls Player.setPlayWhenReady(boolean) on the delegate.
|
| void | setRepeatMode(@com.google.android.exoplayer2.Player.RepeatMode int repeatMode) |
Deprecated.
Calls Player.setRepeatMode(int) on the delegate.
|
| void | setShuffleModeEnabled(boolean shuffleModeEnabled) |
Deprecated.
Calls Player.setShuffleModeEnabled(boolean) on the delegate.
|
| void | setTrackSelectionParameters(TrackSelectionParameters parameters) |
Deprecated.
Calls Player.setTrackSelectionParameters(TrackSelectionParameters) on the delegate.
|
| void | setVideoSurface(Surface surface) |
Deprecated.
Calls Player.setVideoSurface(Surface) on the delegate.
|
| void | setVideoSurfaceHolder(SurfaceHolder surfaceHolder) |
Deprecated.
Calls Player.setVideoSurfaceHolder(SurfaceHolder) on the delegate.
|
| void | setVideoSurfaceView(SurfaceView surfaceView) |
Deprecated.
Calls Player.setVideoSurfaceView(SurfaceView) on the delegate.
|
| void | setVideoTextureView(TextureView textureView) |
Deprecated.
Calls Player.setVideoTextureView(TextureView) on the delegate.
|
| void | setVolume(float volume) |
Deprecated.
Calls Player.setVolume(float) on the delegate.
|
| void | stop() |
Deprecated.
Calls Player.stop() on the delegate.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public ForwardingPlayer([Player](Player.html "interface in com.google.android.exoplayer2")player)
Deprecated.
Creates a new instance that forwards all operations to player.
-
public[Looper](https://developer.android.com/reference/android/os/Looper.html "class or interface in android.os")getApplicationLooper()
Deprecated.
Calls Player.getApplicationLooper() on the delegate and returns the result.
Specified by:getApplicationLooper in interface Player
-
public void addListener([Player.Listener](Player.Listener.html "interface in com.google.android.exoplayer2")listener)
Deprecated.
Calls Player.addListener(Listener) on the delegate.
Overrides of this method must not directly call delegate.addListener. If the override wants to pass the Player.Listener instance to the delegate Player, it must do so by calling super.addListener instead. This ensures the correct Player instance is passed to Player.Listener.onEvents(Player, Events) (i.e. this forwarding instance, and not the underlying delegate instance).
Specified by:addListener in interface PlayerParameters:listener - The listener to register.
-
public void removeListener([Player.Listener](Player.Listener.html "interface in com.google.android.exoplayer2")listener)
Deprecated.
Calls Player.removeListener(Listener) on the delegate.
Overrides of this method must not directly call delegate.removeListener. If the override wants to pass the Player.Listener instance to the delegate Player, it must do so by calling super.removeListener instead.
Specified by:removeListener in interface PlayerParameters:listener - The listener to unregister.
-
public void setMediaItems([List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")> mediaItems)
Deprecated.
Calls Player.setMediaItems(List) on the delegate.
Specified by:setMediaItems in interface PlayerParameters:mediaItems - The new media items.
-
public void setMediaItems([List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")> mediaItems,
boolean resetPosition)
Deprecated.
Calls Player.setMediaItems(List, boolean) ()} on the delegate.
Specified by:setMediaItems in interface PlayerParameters:mediaItems - The new media items.resetPosition - Whether the playback position should be reset to the default position in the first Timeline.Window. If false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
-
public void setMediaItems([List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")> mediaItems,
int startIndex,
long startPositionMs)
Deprecated.
Calls Player.setMediaItems(List, int, long) on the delegate.
Specified by:setMediaItems in interface PlayerParameters:mediaItems - The new media items.startIndex - The MediaItem index to start playback from. If C.INDEX_UNSET is passed, the current position is not reset.startPositionMs - The position in milliseconds to start playback from. If C.TIME_UNSET is passed, the default position of the given MediaItem is used. In any case, if startIndex is set to C.INDEX_UNSET, this parameter is ignored and the position is not reset at all.
-
public void setMediaItem([MediaItem](MediaItem.html "class in com.google.android.exoplayer2")mediaItem)
Deprecated.
Calls Player.setMediaItem(MediaItem) on the delegate.
Specified by:setMediaItem in interface PlayerParameters:mediaItem - The new MediaItem.
-
public void setMediaItem([MediaItem](MediaItem.html "class in com.google.android.exoplayer2")mediaItem,
long startPositionMs)
Deprecated.
Calls Player.setMediaItem(MediaItem, long) on the delegate.
Specified by:setMediaItem in interface PlayerParameters:mediaItem - The new MediaItem.startPositionMs - The position in milliseconds to start playback from.
-
public void setMediaItem([MediaItem](MediaItem.html "class in com.google.android.exoplayer2")mediaItem,
boolean resetPosition)
Deprecated.
Calls Player.setMediaItem(MediaItem, boolean) on the delegate.
Specified by:setMediaItem in interface PlayerParameters:mediaItem - The new MediaItem.resetPosition - Whether the playback position should be reset to the default position. If false, playback will start from the position defined by Player.getCurrentMediaItemIndex() and Player.getCurrentPosition().
-
public void addMediaItem([MediaItem](MediaItem.html "class in com.google.android.exoplayer2")mediaItem)
Deprecated.
Calls Player.addMediaItem(MediaItem) on the delegate.
Specified by:addMediaItem in interface PlayerParameters:mediaItem - The MediaItem to add.
-
public void addMediaItem(int index,[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")mediaItem)
Deprecated.
Calls Player.addMediaItem(int, MediaItem) on the delegate.
Specified by:addMediaItem in interface PlayerParameters:index - The index at which to add the media item. If the index is larger than the size of the playlist, the media item is added to the end of the playlist.mediaItem - The MediaItem to add.
-
public void addMediaItems([List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")> mediaItems)
Deprecated.
Calls Player.addMediaItems(List) on the delegate.
Specified by:addMediaItems in interface PlayerParameters:mediaItems - The media items to add.
-
public void addMediaItems(int index,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")> mediaItems)
Deprecated.
Calls Player.addMediaItems(int, List) on the delegate.
Specified by:addMediaItems in interface PlayerParameters:index - The index at which to add the media items. If the index is larger than the size of the playlist, the media items are added to the end of the playlist.mediaItems - The media items to add.
-
public void moveMediaItem(int currentIndex,
int newIndex)
Deprecated.
Calls Player.moveMediaItem(int, int) on the delegate.
Specified by:moveMediaItem in interface PlayerParameters:currentIndex - The current index of the media item to move. If the index is larger than the size of the playlist, the request is ignored.newIndex - The new index of the media item. If the new index is larger than the size of the playlist the item is moved to the end of the playlist.
-
public void moveMediaItems(int fromIndex,
int toIndex,
int newIndex)
Deprecated.
Calls Player.moveMediaItems(int, int, int) on the delegate.
Specified by:moveMediaItems in interface PlayerParameters:fromIndex - The start of the range to move. If the index is larger than the size of the playlist, the request is ignored.toIndex - The first item not to be included in the range (exclusive). If the index is larger than the size of the playlist, items up to the end of the playlist are moved.newIndex - The new index of the first media item of the range. If the new index is larger than the size of the remaining playlist after removing the range, the range is moved to the end of the playlist.
-
public void replaceMediaItem(int index,[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")mediaItem)
Deprecated.
Calls Player.replaceMediaItem(int, MediaItem) on the delegate.
Specified by:replaceMediaItem in interface PlayerParameters:index - The index at which to replace the media item. If the index is larger than the size of the playlist, the request is ignored.mediaItem - The new MediaItem.
-
public void replaceMediaItems(int fromIndex,
int toIndex,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")> mediaItems)
Deprecated.
Calls Player.replaceMediaItems(int, int, List) on the delegate.
Specified by:replaceMediaItems in interface PlayerParameters:fromIndex - The start of the range. If the index is larger than the size of the playlist, the request is ignored.toIndex - The first item not to be included in the range (exclusive). If the index is larger than the size of the playlist, items up to the end of the playlist are replaced.mediaItems - The media items to replace the range with.
-
public void removeMediaItem(int index)
Deprecated.
Calls Player.removeMediaItem(int) on the delegate.
Specified by:removeMediaItem in interface PlayerParameters:index - The index at which to remove the media item. If the index is larger than the size of the playlist, the request is ignored.
-
public void removeMediaItems(int fromIndex,
int toIndex)
Deprecated.
Calls Player.removeMediaItems(int, int) on the delegate.
Specified by:removeMediaItems in interface PlayerParameters:fromIndex - The index at which to start removing media items. If the index is larger than the size of the playlist, the request is ignored.toIndex - The index of the first item to be kept (exclusive). If the index is larger than the size of the playlist, media items up to the end of the playlist are removed.
-
public void clearMediaItems()
Deprecated.
Calls Player.clearMediaItems() on the delegate.
Specified by:clearMediaItems in interface Player
-
public boolean isCommandAvailable([@Command](Player.Command.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.Player.Command int command)
Deprecated.
Calls Player.isCommandAvailable(int) on the delegate and returns the result.
Specified by:isCommandAvailable in interface PlayerParameters:command - A Player.Command.Returns:Whether the Player.Command is available.See Also:Player.Listener.onAvailableCommandsChanged(Commands)
-
public boolean canAdvertiseSession()
Deprecated.
Calls Player.canAdvertiseSession() on the delegate and returns the result.
Specified by:canAdvertiseSession in interface Player
-
public[Player.Commands](Player.Commands.html "class in com.google.android.exoplayer2")getAvailableCommands()
Deprecated.
Calls Player.getAvailableCommands() on the delegate and returns the result.
Specified by:getAvailableCommands in interface PlayerReturns:The currently available Player.Commands.See Also:Player.Listener.onAvailableCommandsChanged(com.google.android.exoplayer2.Player.Commands)
-
public void prepare()
Deprecated.
Calls Player.prepare() on the delegate.
Specified by:prepare in interface Player
-
public int getPlaybackState()
Deprecated.
Calls Player.getPlaybackState() on the delegate and returns the result.
Specified by:getPlaybackState in interface PlayerReturns:The current playback state.See Also:Player.Listener.onPlaybackStateChanged(int)
-
public int getPlaybackSuppressionReason()
Deprecated.
Calls Player.getPlaybackSuppressionReason() on the delegate and returns the result.
Specified by:getPlaybackSuppressionReason in interface PlayerReturns:The current Player.PlaybackSuppressionReason.See Also:Player.Listener.onPlaybackSuppressionReasonChanged(int)
-
public boolean isPlaying()
Deprecated.
Calls Player.isPlaying() on the delegate and returns the result.
Specified by:isPlaying in interface PlayerReturns:Whether the player is playing.See Also:Player.Listener.onIsPlayingChanged(boolean)
-
@Nullable
public[PlaybackException](PlaybackException.html "class in com.google.android.exoplayer2")getPlayerError()
Deprecated.
Calls Player.getPlayerError() on the delegate and returns the result.
Specified by:getPlayerError in interface PlayerReturns:The error, or null.See Also:Player.Listener.onPlayerError(PlaybackException)
-
public void play()
Deprecated.
Calls Player.play() on the delegate.
Specified by:play in interface Player
-
public void pause()
Deprecated.
Calls Player.pause() on the delegate.
Specified by:pause in interface Player
-
public void setPlayWhenReady(boolean playWhenReady)
Deprecated.
Calls Player.setPlayWhenReady(boolean) on the delegate.
Specified by:setPlayWhenReady in interface PlayerParameters:playWhenReady - Whether playback should proceed when ready.
-
public boolean getPlayWhenReady()
Deprecated.
Calls Player.getPlayWhenReady() on the delegate and returns the result.
Specified by:getPlayWhenReady in interface PlayerReturns:Whether playback will proceed when ready.See Also:Player.Listener.onPlayWhenReadyChanged(boolean, int)
-
public void setRepeatMode([@RepeatMode](Player.RepeatMode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.Player.RepeatMode int repeatMode)
Deprecated.
Calls Player.setRepeatMode(int) on the delegate.
Specified by:setRepeatMode in interface PlayerParameters:repeatMode - The repeat mode.
-
public int getRepeatMode()
Deprecated.
Calls Player.getRepeatMode() on the delegate and returns the result.
Specified by:getRepeatMode in interface PlayerReturns:The current repeat mode.See Also:Player.Listener.onRepeatModeChanged(int)
-
public void setShuffleModeEnabled(boolean shuffleModeEnabled)
Deprecated.
Calls Player.setShuffleModeEnabled(boolean) on the delegate.
Specified by:setShuffleModeEnabled in interface PlayerParameters:shuffleModeEnabled - Whether shuffling is enabled.
-
public boolean getShuffleModeEnabled()
Deprecated.
Calls Player.getShuffleModeEnabled() on the delegate and returns the result.
Specified by:getShuffleModeEnabled in interface PlayerSee Also:Player.Listener.onShuffleModeEnabledChanged(boolean)
-
public boolean isLoading()
Deprecated.
Calls Player.isLoading() on the delegate and returns the result.
Specified by:isLoading in interface PlayerReturns:Whether the player is currently loading the source.See Also:Player.Listener.onIsLoadingChanged(boolean)
-
public void seekToDefaultPosition()
Deprecated.
Calls Player.seekToDefaultPosition() on the delegate.
Specified by:seekToDefaultPosition in interface Player
-
public void seekToDefaultPosition(int mediaItemIndex)
Deprecated.
Calls Player.seekToDefaultPosition(int) on the delegate.
Specified by:seekToDefaultPosition in interface PlayerParameters:mediaItemIndex - The index of the MediaItem whose associated default position should be seeked to. If the index is larger than the size of the playlist, the request is ignored.
-
public void seekTo(long positionMs)
Deprecated.
Calls Player.seekTo(long) on the delegate.
Specified by:seekTo in interface PlayerParameters:positionMs - The seek position in the current MediaItem, or C.TIME_UNSET to seek to the media item's default position.
-
public void seekTo(int mediaItemIndex,
long positionMs)
Deprecated.
Calls Player.seekTo(int, long) on the delegate.
Specified by:seekTo in interface PlayerParameters:mediaItemIndex - The index of the MediaItem. If the index is larger than the size of the playlist, the request is ignored.positionMs - The seek position in the specified MediaItem, or C.TIME_UNSET to seek to the media item's default position.
-
public long getSeekBackIncrement()
Deprecated.
Calls Player.getSeekBackIncrement() on the delegate and returns the result.
Specified by:getSeekBackIncrement in interface PlayerReturns:The seek back increment, in milliseconds.See Also:Player.Listener.onSeekBackIncrementChanged(long)
-
public void seekBack()
Deprecated.
Calls Player.seekBack() on the delegate.
Specified by:seekBack in interface Player
-
public long getSeekForwardIncrement()
Deprecated.
Calls Player.getSeekForwardIncrement() on the delegate and returns the result.
Specified by:getSeekForwardIncrement in interface PlayerReturns:The seek forward increment, in milliseconds.See Also:Player.Listener.onSeekForwardIncrementChanged(long)
-
public void seekForward()
Deprecated.
Calls Player.seekForward() on the delegate.
Specified by:seekForward in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public boolean hasPrevious()
Deprecated.
Use hasPreviousMediaItem() instead.
Calls Player.hasPrevious() on the delegate and returns the result.
Specified by:hasPrevious in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public boolean hasPreviousWindow()
Deprecated.
Use hasPreviousMediaItem() instead.
Calls Player.hasPreviousWindow() on the delegate and returns the result.
Specified by:hasPreviousWindow in interface Player
-
public boolean hasPreviousMediaItem()
Deprecated.
Calls Player.hasPreviousMediaItem() on the delegate and returns the result.
Specified by:hasPreviousMediaItem in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public void previous()
Deprecated.
Use seekToPreviousMediaItem() instead.
Calls Player.previous() on the delegate.
Specified by:previous in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public void seekToPreviousWindow()
Deprecated.
Use seekToPreviousMediaItem() instead.
Calls Player.seekToPreviousWindow() on the delegate.
Specified by:seekToPreviousWindow in interface Player
-
public void seekToPreviousMediaItem()
Deprecated.
Calls Player.seekToPreviousMediaItem() on the delegate.
Specified by:seekToPreviousMediaItem in interface Player
-
public void seekToPrevious()
Deprecated.
Calls Player.seekToPrevious() on the delegate.
Specified by:seekToPrevious in interface Player
-
public long getMaxSeekToPreviousPosition()
Deprecated.
Calls Player.getMaxSeekToPreviousPosition() on the delegate and returns the result.
Specified by:getMaxSeekToPreviousPosition in interface PlayerReturns:The maximum seek to previous position, in milliseconds.See Also:Player.Listener.onMaxSeekToPreviousPositionChanged(long)
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public boolean hasNext()
Deprecated.
Use hasNextMediaItem() instead.
Calls Player.hasNext() on the delegate and returns the result.
Specified by:hasNext in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public boolean hasNextWindow()
Deprecated.
Use hasNextMediaItem() instead.
Calls Player.hasNextWindow() on the delegate and returns the result.
Specified by:hasNextWindow in interface Player
-
public boolean hasNextMediaItem()
Deprecated.
Calls Player.hasNextMediaItem() on the delegate and returns the result.
Specified by:hasNextMediaItem in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public void next()
Deprecated.
Use seekToNextMediaItem() instead.
Calls Player.next() on the delegate.
Specified by:next in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public void seekToNextWindow()
Deprecated.
Use seekToNextMediaItem() instead.
Calls Player.seekToNextWindow() on the delegate.
Specified by:seekToNextWindow in interface Player
-
public void seekToNextMediaItem()
Deprecated.
Calls Player.seekToNextMediaItem() on the delegate.
Specified by:seekToNextMediaItem in interface Player
-
public void seekToNext()
Deprecated.
Calls Player.seekToNext() on the delegate.
Specified by:seekToNext in interface Player
-
public void setPlaybackParameters([PlaybackParameters](PlaybackParameters.html "class in com.google.android.exoplayer2")playbackParameters)
Deprecated.
Calls Player.setPlaybackParameters(PlaybackParameters) on the delegate.
Specified by:setPlaybackParameters in interface PlayerParameters:playbackParameters - The playback parameters.
-
public void setPlaybackSpeed(float speed)
Deprecated.
Calls Player.setPlaybackSpeed(float) on the delegate.
Specified by:setPlaybackSpeed in interface PlayerParameters:speed - The linear factor by which playback will be sped up. Must be higher than 0. 1 is normal speed, 2 is twice as fast, 0.5 is half normal speed.
-
public[PlaybackParameters](PlaybackParameters.html "class in com.google.android.exoplayer2")getPlaybackParameters()
Deprecated.
Calls Player.getPlaybackParameters() on the delegate and returns the result.
Specified by:getPlaybackParameters in interface PlayerSee Also:Player.Listener.onPlaybackParametersChanged(PlaybackParameters)
-
public void stop()
Deprecated.
Calls Player.stop() on the delegate.
Specified by:stop in interface Player
-
public void release()
Deprecated.
Calls Player.release() on the delegate.
Specified by:release in interface Player
-
public[Tracks](Tracks.html "class in com.google.android.exoplayer2")getCurrentTracks()
Deprecated.
Calls Player.getCurrentTracks() on the delegate and returns the result.
Specified by:getCurrentTracks in interface PlayerSee Also:Player.Listener.onTracksChanged(Tracks)
-
public[TrackSelectionParameters](trackselection/TrackSelectionParameters.html "class in com.google.android.exoplayer2.trackselection")getTrackSelectionParameters()
Deprecated.
Calls Player.getTrackSelectionParameters() on the delegate and returns the result.
Specified by:getTrackSelectionParameters in interface PlayerSee Also:}
-
public void setTrackSelectionParameters([TrackSelectionParameters](trackselection/TrackSelectionParameters.html "class in com.google.android.exoplayer2.trackselection")parameters)
Deprecated.
Calls Player.setTrackSelectionParameters(TrackSelectionParameters) on the delegate.
Specified by:setTrackSelectionParameters in interface Player
-
public[MediaMetadata](MediaMetadata.html "class in com.google.android.exoplayer2")getMediaMetadata()
Deprecated.
Calls Player.getMediaMetadata() on the delegate and returns the result.
Specified by:getMediaMetadata in interface Player
-
public[MediaMetadata](MediaMetadata.html "class in com.google.android.exoplayer2")getPlaylistMetadata()
Deprecated.
Calls Player.getPlaylistMetadata() on the delegate and returns the result.
Specified by:getPlaylistMetadata in interface Player
-
public void setPlaylistMetadata([MediaMetadata](MediaMetadata.html "class in com.google.android.exoplayer2")mediaMetadata)
Deprecated.
Calls Player.setPlaylistMetadata(MediaMetadata) on the delegate.
Specified by:setPlaylistMetadata in interface Player
-
@Nullable
public[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")getCurrentManifest()
Deprecated.
Calls Player.getCurrentManifest() on the delegate and returns the result.
Specified by:getCurrentManifest in interface Player
-
public[Timeline](Timeline.html "class in com.google.android.exoplayer2")getCurrentTimeline()
Deprecated.
Calls Player.getCurrentTimeline() on the delegate and returns the result.
Specified by:getCurrentTimeline in interface PlayerSee Also:Player.Listener.onTimelineChanged(Timeline, int)
-
public int getCurrentPeriodIndex()
Deprecated.
Calls Player.getCurrentPeriodIndex() on the delegate and returns the result.
Specified by:getCurrentPeriodIndex in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public int getCurrentWindowIndex()
Deprecated.
Use getCurrentMediaItemIndex() instead.
Calls Player.getCurrentWindowIndex() on the delegate and returns the result.
Specified by:getCurrentWindowIndex in interface Player
-
public int getCurrentMediaItemIndex()
Deprecated.
Calls Player.getCurrentMediaItemIndex() on the delegate and returns the result.
Specified by:getCurrentMediaItemIndex in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public int getNextWindowIndex()
Deprecated.
Use getNextMediaItemIndex() instead.
Calls Player.getNextWindowIndex() on the delegate and returns the result.
Specified by:getNextWindowIndex in interface Player
-
public int getNextMediaItemIndex()
Deprecated.
Calls Player.getNextMediaItemIndex() on the delegate and returns the result.
Specified by:getNextMediaItemIndex in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public int getPreviousWindowIndex()
Deprecated.
Use getPreviousMediaItemIndex() instead.
Calls Player.getPreviousWindowIndex() on the delegate and returns the result.
Specified by:getPreviousWindowIndex in interface Player
-
public int getPreviousMediaItemIndex()
Deprecated.
Calls Player.getPreviousMediaItemIndex() on the delegate and returns the result.
Specified by:getPreviousMediaItemIndex in interface Player
-
@Nullable
public[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")getCurrentMediaItem()
Deprecated.
Calls Player.getCurrentMediaItem() on the delegate and returns the result.
Specified by:getCurrentMediaItem in interface PlayerSee Also:Player.Listener.onMediaItemTransition(MediaItem, int)
-
public int getMediaItemCount()
Deprecated.
Calls Player.getMediaItemCount() on the delegate and returns the result.
Specified by:getMediaItemCount in interface Player
-
public[MediaItem](MediaItem.html "class in com.google.android.exoplayer2")getMediaItemAt(int index)
Deprecated.
Calls Player.getMediaItemAt(int) on the delegate and returns the result.
Specified by:getMediaItemAt in interface Player
-
public long getDuration()
Deprecated.
Calls Player.getDuration() on the delegate and returns the result.
Specified by:getDuration in interface Player
-
public long getCurrentPosition()
Deprecated.
Calls Player.getCurrentPosition() on the delegate and returns the result.
Specified by:getCurrentPosition in interface Player
-
public long getBufferedPosition()
Deprecated.
Calls Player.getBufferedPosition() on the delegate and returns the result.
Specified by:getBufferedPosition in interface Player
-
public int getBufferedPercentage()
Deprecated.
Calls Player.getBufferedPercentage() on the delegate and returns the result.
Specified by:getBufferedPercentage in interface Player
-
public long getTotalBufferedDuration()
Deprecated.
Calls Player.getTotalBufferedDuration() on the delegate and returns the result.
Specified by:getTotalBufferedDuration in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public boolean isCurrentWindowDynamic()
Deprecated.
Use isCurrentMediaItemDynamic() instead.
Calls Player.isCurrentWindowDynamic() on the delegate and returns the result.
Specified by:isCurrentWindowDynamic in interface Player
-
public boolean isCurrentMediaItemDynamic()
Deprecated.
Calls Player.isCurrentMediaItemDynamic() on the delegate and returns the result.
Specified by:isCurrentMediaItemDynamic in interface PlayerSee Also:Timeline.Window.isDynamic
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public boolean isCurrentWindowLive()
Deprecated.
Use isCurrentMediaItemLive() instead.
Calls Player.isCurrentWindowLive() on the delegate and returns the result.
Specified by:isCurrentWindowLive in interface Player
-
public boolean isCurrentMediaItemLive()
Deprecated.
Calls Player.isCurrentMediaItemLive() on the delegate and returns the result.
Specified by:isCurrentMediaItemLive in interface PlayerSee Also:Timeline.Window.isLive()
-
public long getCurrentLiveOffset()
Deprecated.
Calls Player.getCurrentLiveOffset() on the delegate and returns the result.
Specified by:getCurrentLiveOffset in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public boolean isCurrentWindowSeekable()
Deprecated.
Use isCurrentMediaItemSeekable() instead.
Calls Player.isCurrentWindowSeekable() on the delegate and returns the result.
Specified by:isCurrentWindowSeekable in interface Player
-
public boolean isCurrentMediaItemSeekable()
Deprecated.
Calls Player.isCurrentMediaItemSeekable() on the delegate and returns the result.
Specified by:isCurrentMediaItemSeekable in interface PlayerSee Also:Timeline.Window.isSeekable
-
public boolean isPlayingAd()
Deprecated.
Calls Player.isPlayingAd() on the delegate and returns the result.
Specified by:isPlayingAd in interface Player
-
public int getCurrentAdGroupIndex()
Deprecated.
Calls Player.getCurrentAdGroupIndex() on the delegate and returns the result.
Specified by:getCurrentAdGroupIndex in interface Player
-
public int getCurrentAdIndexInAdGroup()
Deprecated.
Calls Player.getCurrentAdIndexInAdGroup() on the delegate and returns the result.
Specified by:getCurrentAdIndexInAdGroup in interface Player
-
public long getContentDuration()
Deprecated.
Calls Player.getContentDuration() on the delegate and returns the result.
Specified by:getContentDuration in interface Player
-
public long getContentPosition()
Deprecated.
Calls Player.getContentPosition() on the delegate and returns the result.
Specified by:getContentPosition in interface Player
-
public long getContentBufferedPosition()
Deprecated.
Calls Player.getContentBufferedPosition() on the delegate and returns the result.
Specified by:getContentBufferedPosition in interface Player
-
public[AudioAttributes](audio/AudioAttributes.html "class in com.google.android.exoplayer2.audio")getAudioAttributes()
Deprecated.
Calls Player.getAudioAttributes() on the delegate and returns the result.
Specified by:getAudioAttributes in interface Player
-
public void setVolume(float volume)
Deprecated.
Calls Player.setVolume(float) on the delegate.
Specified by:setVolume in interface PlayerParameters:volume - Linear output gain to apply to all audio channels.
-
public float getVolume()
Deprecated.
Calls Player.getVolume() on the delegate and returns the result.
Specified by:getVolume in interface PlayerReturns:The linear gain applied to all audio channels.
-
public[VideoSize](video/VideoSize.html "class in com.google.android.exoplayer2.video")getVideoSize()
Deprecated.
Calls Player.getVideoSize() on the delegate and returns the result.
Specified by:getVideoSize in interface PlayerSee Also:Player.Listener.onVideoSizeChanged(VideoSize)
-
public[Size](util/Size.html "class in com.google.android.exoplayer2.util")getSurfaceSize()
Deprecated.
Calls Player.getSurfaceSize() on the delegate and returns the result.
Specified by:getSurfaceSize in interface PlayerSee Also:Player.Listener.onSurfaceSizeChanged(int, int)
-
public void clearVideoSurface()
Deprecated.
Calls Player.clearVideoSurface() on the delegate.
Specified by:clearVideoSurface in interface Player
-
public void clearVideoSurface(@Nullable[Surface](https://developer.android.com/reference/android/view/Surface.html "class or interface in android.view")surface)
Deprecated.
Calls Player.clearVideoSurface(Surface) on the delegate.
Specified by:clearVideoSurface in interface PlayerParameters:surface - The surface to clear.
-
public void setVideoSurface(@Nullable[Surface](https://developer.android.com/reference/android/view/Surface.html "class or interface in android.view")surface)
Deprecated.
Calls Player.setVideoSurface(Surface) on the delegate.
Specified by:setVideoSurface in interface PlayerParameters:surface - The Surface.
-
public void setVideoSurfaceHolder(@Nullable[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html "class or interface in android.view")surfaceHolder)
Deprecated.
Calls Player.setVideoSurfaceHolder(SurfaceHolder) on the delegate.
Specified by:setVideoSurfaceHolder in interface PlayerParameters:surfaceHolder - The surface holder.
-
public void clearVideoSurfaceHolder(@Nullable[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html "class or interface in android.view")surfaceHolder)
Deprecated.
Calls Player.clearVideoSurfaceHolder(SurfaceHolder) on the delegate.
Specified by:clearVideoSurfaceHolder in interface PlayerParameters:surfaceHolder - The surface holder to clear.
-
public void setVideoSurfaceView(@Nullable[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html "class or interface in android.view")surfaceView)
Deprecated.
Calls Player.setVideoSurfaceView(SurfaceView) on the delegate.
Specified by:setVideoSurfaceView in interface PlayerParameters:surfaceView - The surface view.
-
public void clearVideoSurfaceView(@Nullable[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html "class or interface in android.view")surfaceView)
Deprecated.
Calls Player.clearVideoSurfaceView(SurfaceView) on the delegate.
Specified by:clearVideoSurfaceView in interface PlayerParameters:surfaceView - The texture view to clear.
-
public void setVideoTextureView(@Nullable[TextureView](https://developer.android.com/reference/android/view/TextureView.html "class or interface in android.view")textureView)
Deprecated.
Calls Player.setVideoTextureView(TextureView) on the delegate.
Specified by:setVideoTextureView in interface PlayerParameters:textureView - The texture view.
-
public void clearVideoTextureView(@Nullable[TextureView](https://developer.android.com/reference/android/view/TextureView.html "class or interface in android.view")textureView)
Deprecated.
Calls Player.clearVideoTextureView(TextureView) on the delegate.
Specified by:clearVideoTextureView in interface PlayerParameters:textureView - The texture view to clear.
-
public[CueGroup](text/CueGroup.html "class in com.google.android.exoplayer2.text")getCurrentCues()
Deprecated.
Calls Player.getCurrentCues() on the delegate and returns the result.
Specified by:getCurrentCues in interface Player
-
public[DeviceInfo](DeviceInfo.html "class in com.google.android.exoplayer2")getDeviceInfo()
Deprecated.
Calls Player.getDeviceInfo() on the delegate and returns the result.
Specified by:getDeviceInfo in interface Player
-
public int getDeviceVolume()
Deprecated.
Calls Player.getDeviceVolume() on the delegate and returns the result.
Specified by:getDeviceVolume in interface Player
-
public boolean isDeviceMuted()
Deprecated.
Calls Player.isDeviceMuted() on the delegate and returns the result.
Specified by:isDeviceMuted in interface Player
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public void setDeviceVolume(int volume)
Deprecated.
Use setDeviceVolume(int, int) instead.
Specified by:setDeviceVolume in interface Player
-
public void setDeviceVolume(int volume,
@com.google.android.exoplayer2.C.VolumeFlags int flags)
Deprecated.
Calls Player.setDeviceVolume(int, int) on the delegate.
Specified by:setDeviceVolume in interface PlayerParameters:volume - The volume to set.flags - Either 0 or a bitwise combination of one or more C.VolumeFlags.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public void increaseDeviceVolume()
Deprecated.
Use increaseDeviceVolume(int) instead.
Specified by:increaseDeviceVolume in interface Player
-
public void increaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlags int flags)
Deprecated.
Calls Player.increaseDeviceVolume(int) on the delegate.
Specified by:increaseDeviceVolume in interface PlayerParameters:flags - Either 0 or a bitwise combination of one or more C.VolumeFlags.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public void decreaseDeviceVolume()
Deprecated.
Use decreaseDeviceVolume(int) instead.
Specified by:decreaseDeviceVolume in interface Player
-
public void decreaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlags int flags)
Deprecated.
Calls Player.decreaseDeviceVolume(int) on the delegate.
Specified by:decreaseDeviceVolume in interface PlayerParameters:flags - Either 0 or a bitwise combination of one or more C.VolumeFlags.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public void setDeviceMuted(boolean muted)
Deprecated.
Use setDeviceMuted(boolean, int) instead.
Specified by:setDeviceMuted in interface Player
-
public void setDeviceMuted(boolean muted,
@com.google.android.exoplayer2.C.VolumeFlags int flags)
Deprecated.
Calls Player.setDeviceMuted(boolean, int) on the delegate.
Specified by:setDeviceMuted in interface PlayerParameters:muted - Whether to set the device to be muted or notflags - Either 0 or a bitwise combination of one or more C.VolumeFlags.
-
public[Player](Player.html "interface in com.google.android.exoplayer2")getWrappedPlayer()
Deprecated.
Returns the Player to which operations are forwarded.