Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a9cdb4ca
authored
Jan 12, 2021
by
christosts
Committed by
Oliver Woodman
Jan 13, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated methods from SimpleExoPlayer
PiperOrigin-RevId: 351375479
parent
969b6468
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
30 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
RELEASENOTES.md
View file @
a9cdb4ca
...
...
@@ -8,10 +8,17 @@
`Player.EventListener.onTimelineChanged(Timeline, int)`
instead.
*
`DefaultLoadControl`
constructors. Use
`DefaultLoadControl.Builder`
instead.
*
`PlayerView.setDefaultArtwork(Bitmap)`
-
Use
*
`PlayerView.setDefaultArtwork(Bitmap)`
.
Use
`PlayerView.setDefaultArtwork(Drawable)`
instead.
*
`PlayerView.setShowBuffering(boolean)`
-
Use
*
`PlayerView.setShowBuffering(boolean)`
.
Use
`PlayerView.setShowBuffering(int)`
instead.
*
`SimpleExoPlayer.clearVideoListener()`
. Use
`SimpleExoPlayer.removeVideoListener(VideoListener)`
instead.
*
`SimpleExoPlayer.setVideoListener(VideoListener)`
. Use
`SimpleExoPlayer.addVideoListener(VideoListener)`
instead. If your
application is calling
`SimpleExoPlayer.setVideoListener(null)`
,
make sure to replace this call with
`SimpleExoPlayer.removeVideoListener(VideoListener)`
.
*
Remove deprecated interface
`AdaptiveMediaSourceEventListener`
. Use
`MediaSourceEventListener`
instead.
*
Add a
`LivePlaybackSpeedControl`
component to control the playback speed
...
...
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
View file @
a9cdb4ca
...
...
@@ -1234,34 +1234,6 @@ public class SimpleExoPlayer extends BasePlayer
C
.
TRACK_TYPE_CAMERA_MOTION
,
Renderer
.
MSG_SET_CAMERA_MOTION_LISTENER
,
/* payload= */
null
);
}
/**
* Sets a listener to receive video events, removing all existing listeners.
*
* @param listener The listener.
* @deprecated Use {@link #addVideoListener(com.google.android.exoplayer2.video.VideoListener)}.
*/
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
void
setVideoListener
(
@Nullable
VideoListener
listener
)
{
videoListeners
.
clear
();
if
(
listener
!=
null
)
{
addVideoListener
(
listener
);
}
}
/**
* Equivalent to {@link #removeVideoListener(com.google.android.exoplayer2.video.VideoListener)}.
*
* @param listener The listener to clear.
* @deprecated Use {@link
* #removeVideoListener(com.google.android.exoplayer2.video.VideoListener)}.
*/
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
void
clearVideoListener
(
VideoListener
listener
)
{
removeVideoListener
(
listener
);
}
@Override
public
void
addTextOutput
(
TextOutput
listener
)
{
// Don't verify application thread. We allow calls to this method from any thread.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment