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
e9511a56
authored
Apr 24, 2020
by
tonihei
Committed by
Ian Baker
Apr 27, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Deprecate onSeekProcessed.
PiperOrigin-RevId: 308246116
parent
13c668f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/Player.java
library/core/src/main/java/com/google/android/exoplayer2/analytics/AnalyticsCollector.java
library/core/src/main/java/com/google/android/exoplayer2/analytics/AnalyticsListener.java
RELEASENOTES.md
View file @
e9511a56
...
...
@@ -26,6 +26,8 @@
consistency.
*
Deprecate and rename
`onLoadingChanged`
to
`onIsLoadingChanged`
for
consistency.
*
Deprecate
`onSeekProcessed`
because all seek changes happen instantly
now and listening to
`onPositionDiscontinuity`
is sufficient.
*
Add
`ExoPlayer.setPauseAtEndOfMediaItems`
to let the player pause at the
end of each media item
(
[
#5660
](
https://github.com/google/ExoPlayer/issues/5660
)
).
...
...
library/core/src/main/java/com/google/android/exoplayer2/Player.java
View file @
e9511a56
...
...
@@ -582,10 +582,10 @@ public interface Player {
default
void
onPlaybackSpeedChanged
(
float
playbackSpeed
)
{}
/**
* Called when all pending seek requests have been processed by the player. This is guaranteed
* to happen after any necessary changes to the player state were reported to {@link
* #onPlaybackStateChanged(int)}.
* @deprecated Seeks are processed without delay. Listen to {@link
* #onPositionDiscontinuity(int)} with reason {@link #DISCONTINUITY_REASON_SEEK} instead.
*/
@Deprecated
default
void
onSeekProcessed
()
{}
}
...
...
library/core/src/main/java/com/google/android/exoplayer2/analytics/AnalyticsCollector.java
View file @
e9511a56
...
...
@@ -554,6 +554,7 @@ public class AnalyticsCollector
}
}
@SuppressWarnings
(
"deprecation"
)
@Override
public
final
void
onSeekProcessed
()
{
EventTime
eventTime
=
generateCurrentPlayerMediaPeriodEventTime
();
...
...
library/core/src/main/java/com/google/android/exoplayer2/analytics/AnalyticsListener.java
View file @
e9511a56
...
...
@@ -190,10 +190,11 @@ public interface AnalyticsListener {
default
void
onSeekStarted
(
EventTime
eventTime
)
{}
/**
*
Called when a seek operation was processed.
*
*
@param eventTime The event time
.
*
@deprecated Seeks are processed without delay. Listen to {@link
*
#onPositionDiscontinuity(EventTime, int)} with reason {@link
*
Player#DISCONTINUITY_REASON_SEEK} instead
.
*/
@Deprecated
default
void
onSeekProcessed
(
EventTime
eventTime
)
{}
/**
...
...
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