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
3b778160
authored
Oct 08, 2021
by
olly
Committed by
bachinger
Oct 09, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove stray reference to ExoPlayer
PiperOrigin-RevId: 401741416
parent
b03ebbeb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
extensions/leanback/src/main/java/com/google/android/exoplayer2/ext/leanback/LeanbackPlayerAdapter.java
extensions/leanback/src/main/java/com/google/android/exoplayer2/ext/leanback/LeanbackPlayerAdapter.java
View file @
3b778160
...
@@ -63,8 +63,8 @@ public final class LeanbackPlayerAdapter extends PlayerAdapter implements Runnab
...
@@ -63,8 +63,8 @@ public final class LeanbackPlayerAdapter extends PlayerAdapter implements Runnab
* {@link Player} instance. The caller remains responsible for releasing the player when it's no
* {@link Player} instance. The caller remains responsible for releasing the player when it's no
* longer required.
* longer required.
*
*
* @param context The current
context
(activity).
* @param context The current
{@link Context}
(activity).
* @param player
Instance of your exoplayer that needs to be configur
ed.
* @param player
The {@link Player} being us
ed.
* @param updatePeriodMs The delay between player control updates, in milliseconds.
* @param updatePeriodMs The delay between player control updates, in milliseconds.
*/
*/
public
LeanbackPlayerAdapter
(
Context
context
,
Player
player
,
final
int
updatePeriodMs
)
{
public
LeanbackPlayerAdapter
(
Context
context
,
Player
player
,
final
int
updatePeriodMs
)
{
...
@@ -267,9 +267,9 @@ public final class LeanbackPlayerAdapter extends PlayerAdapter implements Runnab
...
@@ -267,9 +267,9 @@ public final class LeanbackPlayerAdapter extends PlayerAdapter implements Runnab
callback
.
onError
(
callback
.
onError
(
LeanbackPlayerAdapter
.
this
,
LeanbackPlayerAdapter
.
this
,
error
.
errorCode
,
error
.
errorCode
,
// This string was probably tailored for MediaPlayer, whose
callback takes 2 ints as
// This string was probably tailored for MediaPlayer, whose
error callback takes two
//
error code. Since ExoPlayer provides a single error code, we just pass 0 as the
//
int arguments (int what, int extra). Since PlaybackException defines a single error
// extra.
//
code, we pass 0 as the
extra.
context
.
getString
(
context
.
getString
(
R
.
string
.
lb_media_player_error
,
/* formatArgs...= */
error
.
errorCode
,
0
));
R
.
string
.
lb_media_player_error
,
/* formatArgs...= */
error
.
errorCode
,
0
));
}
}
...
...
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