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
dde0b9b6
authored
Jan 13, 2021
by
christosts
Committed by
Oliver Woodman
Jan 13, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove setVideoDebugListener and setAudioDebugListener
PiperOrigin-RevId: 351565147
parent
03ebc5b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
34 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
RELEASENOTES.md
View file @
dde0b9b6
...
@@ -8,25 +8,31 @@
...
@@ -8,25 +8,31 @@
`Player.EventListener.onTimelineChanged(Timeline, int)`
instead.
`Player.EventListener.onTimelineChanged(Timeline, int)`
instead.
*
`DefaultLoadControl`
constructors. Use
`DefaultLoadControl.Builder`
*
`DefaultLoadControl`
constructors. Use
`DefaultLoadControl.Builder`
instead.
instead.
*
`MappedTrackInfo.getTrackFormatSupport(int, int, int)`
. Use
`MappedTrackInfo.getTrackSupport(int, int, int)`
.
*
`MappedTrackInfo.getTrackTypeRendererSupport(int)`
. Use
`MappedTrackInfo.getTypeSupport(int)`
.
*
`MappedTrackInfo.getUnassociatedTrackGroups()`
. Use
`MappedTrackInfo.getUnmappedTrackGroups()`
.
*
`MappedTrackInfo.length`
- Use
`MappedTrackInfo.getRendererCount()`
instead.
*
`PlayerView.setDefaultArtwork(Bitmap)`
. Use
*
`PlayerView.setDefaultArtwork(Bitmap)`
. Use
`PlayerView.setDefaultArtwork(Drawable)`
instead.
`PlayerView.setDefaultArtwork(Drawable)`
instead.
*
`PlayerView.setShowBuffering(boolean)`
. Use
*
`PlayerView.setShowBuffering(boolean)`
. Use
`PlayerView.setShowBuffering(int)`
instead.
`PlayerView.setShowBuffering(int)`
instead.
*
`SimpleExoPlayer.clearVideoListener()`
. Use
*
`SimpleExoPlayer.clearVideoListener()`
. Use
`SimpleExoPlayer.removeVideoListener(VideoListener)`
instead.
`SimpleExoPlayer.removeVideoListener(VideoListener)`
instead.
*
`SimpleExoPlayer.setAudioDebugListener(AudioRendererEventListener)`
.
Use
`SimpleExoPlayer.addAnalyticsListener(AnalyticsListener)`
instead.
*
`SimpleExoPlayer.setVideoDebugListener(VideoRendererEventListener)`
.
Use
`SimpleExoPlayer.addAnalyticsListener(AnalyticsListener)`
instead.
*
`SimpleExoPlayer.setVideoListener(VideoListener)`
. Use
*
`SimpleExoPlayer.setVideoListener(VideoListener)`
. Use
`SimpleExoPlayer.addVideoListener(VideoListener)`
instead. If your
`SimpleExoPlayer.addVideoListener(VideoListener)`
instead. If your
application is calling
`SimpleExoPlayer.setVideoListener(null)`
,
application is calling
`SimpleExoPlayer.setVideoListener(null)`
,
make sure to replace this call with
make sure to replace this call with
`SimpleExoPlayer.removeVideoListener(VideoListener)`
.
`SimpleExoPlayer.removeVideoListener(VideoListener)`
.
*
`MappedTrackInfo.length`
- Use
`MappedTrackInfo.getRendererCount()`
instead.
*
`MappedTrackInfo.getTrackTypeRendererSupport(int)`
- Use
`MappedTrackInfo.getTypeSupport(int)`
.
*
`MappedTrackInfo.getTrackFormatSupport(int, int, int)`
- Use
`MappedTrackInfo.getTrackSupport(int, int, int)`
.
*
`MappedTrackInfo.getUnassociatedTrackGroups()`
- Use
`MappedTrackInfo.getUnmappedTrackGroups()`
.
*
Remove deprecated interface
`AdaptiveMediaSourceEventListener`
. Use
*
Remove deprecated interface
`AdaptiveMediaSourceEventListener`
. Use
`MediaSourceEventListener`
instead.
`MediaSourceEventListener`
instead.
*
Add a
`LivePlaybackSpeedControl`
component to control the playback speed
*
Add a
`LivePlaybackSpeedControl`
component to control the playback speed
...
...
library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java
View file @
dde0b9b6
...
@@ -1321,19 +1321,6 @@ public class SimpleExoPlayer extends BasePlayer
...
@@ -1321,19 +1321,6 @@ public class SimpleExoPlayer extends BasePlayer
* information.
* information.
*/
*/
@Deprecated
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
void
setVideoDebugListener
(
@Nullable
VideoRendererEventListener
listener
)
{
videoDebugListeners
.
retainAll
(
Collections
.
singleton
(
analyticsCollector
));
if
(
listener
!=
null
)
{
addVideoDebugListener
(
listener
);
}
}
/**
* @deprecated Use {@link #addAnalyticsListener(AnalyticsListener)} to get more detailed debug
* information.
*/
@Deprecated
public
void
addVideoDebugListener
(
VideoRendererEventListener
listener
)
{
public
void
addVideoDebugListener
(
VideoRendererEventListener
listener
)
{
Assertions
.
checkNotNull
(
listener
);
Assertions
.
checkNotNull
(
listener
);
videoDebugListeners
.
add
(
listener
);
videoDebugListeners
.
add
(
listener
);
...
@@ -1353,19 +1340,6 @@ public class SimpleExoPlayer extends BasePlayer
...
@@ -1353,19 +1340,6 @@ public class SimpleExoPlayer extends BasePlayer
* information.
* information.
*/
*/
@Deprecated
@Deprecated
@SuppressWarnings
(
"deprecation"
)
public
void
setAudioDebugListener
(
@Nullable
AudioRendererEventListener
listener
)
{
audioDebugListeners
.
retainAll
(
Collections
.
singleton
(
analyticsCollector
));
if
(
listener
!=
null
)
{
addAudioDebugListener
(
listener
);
}
}
/**
* @deprecated Use {@link #addAnalyticsListener(AnalyticsListener)} to get more detailed debug
* information.
*/
@Deprecated
public
void
addAudioDebugListener
(
AudioRendererEventListener
listener
)
{
public
void
addAudioDebugListener
(
AudioRendererEventListener
listener
)
{
Assertions
.
checkNotNull
(
listener
);
Assertions
.
checkNotNull
(
listener
);
audioDebugListeners
.
add
(
listener
);
audioDebugListeners
.
add
(
listener
);
...
...
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