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
72cf9c38
authored
Jul 23, 2021
by
kimvde
Committed by
kim-vde
Jul 23, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Deprecate ControlDispatcher and DefaultControlDispatcher
PiperOrigin-RevId: 386401066
parent
d6c721ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
RELEASENOTES.md
library/common/src/main/java/com/google/android/exoplayer2/ControlDispatcher.java
library/common/src/main/java/com/google/android/exoplayer2/DefaultControlDispatcher.java
RELEASENOTES.md
View file @
72cf9c38
...
@@ -45,6 +45,8 @@
...
@@ -45,6 +45,8 @@
`Player.EVENT_MEDIA_METADATA_CHANGED`
for convenient access to
`Player.EVENT_MEDIA_METADATA_CHANGED`
for convenient access to
structured metadata, or access the raw static metadata directly from the
structured metadata, or access the raw static metadata directly from the
`TrackSelection#getFormat()`
.
`TrackSelection#getFormat()`
.
*
Deprecate
`ControlDispatcher`
and
`DefaultControlDispatcher`
. Use a
`ForwardingPlayer`
or configure the player to customize operations.
*
Remove deprecated symbols:
*
Remove deprecated symbols:
*
Remove
`Player.getPlaybackError`
. Use
`Player.getPlayerError`
instead.
*
Remove
`Player.getPlaybackError`
. Use
`Player.getPlayerError`
instead.
*
Remove
`Player.getCurrentTag`
. Use
`Player.getCurrentMediaItem`
and
*
Remove
`Player.getCurrentTag`
. Use
`Player.getCurrentMediaItem`
and
...
...
library/common/src/main/java/com/google/android/exoplayer2/ControlDispatcher.java
View file @
72cf9c38
...
@@ -17,13 +17,8 @@ package com.google.android.exoplayer2;
...
@@ -17,13 +17,8 @@ package com.google.android.exoplayer2;
import
com.google.android.exoplayer2.Player.RepeatMode
;
import
com.google.android.exoplayer2.Player.RepeatMode
;
/**
/** @deprecated Use a {@link ForwardingPlayer} or configure the player to customize operations. */
* Dispatches operations to the {@link Player}.
@Deprecated
*
* <p>Implementations may choose to suppress (e.g. prevent playback from resuming if audio focus is
* denied) or modify (e.g. change the seek position to prevent a user from seeking past a
* non-skippable advert) operations.
*/
public
interface
ControlDispatcher
{
public
interface
ControlDispatcher
{
/**
/**
...
...
library/common/src/main/java/com/google/android/exoplayer2/DefaultControlDispatcher.java
View file @
72cf9c38
...
@@ -18,7 +18,8 @@ package com.google.android.exoplayer2;
...
@@ -18,7 +18,8 @@ package com.google.android.exoplayer2;
import
static
java
.
lang
.
Math
.
max
;
import
static
java
.
lang
.
Math
.
max
;
import
static
java
.
lang
.
Math
.
min
;
import
static
java
.
lang
.
Math
.
min
;
/** Default {@link ControlDispatcher}. */
/** @deprecated Use a {@link ForwardingPlayer} or configure the player to customize operations. */
@Deprecated
public
class
DefaultControlDispatcher
implements
ControlDispatcher
{
public
class
DefaultControlDispatcher
implements
ControlDispatcher
{
private
final
long
rewindIncrementMs
;
private
final
long
rewindIncrementMs
;
...
...
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