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
e2f1285a
authored
Jul 22, 2021
by
kimvde
Committed by
kim-vde
Jul 22, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Document getAvailableCommands in BasePlayer
PiperOrigin-RevId: 386207381
parent
ab416f41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
library/common/src/main/java/com/google/android/exoplayer2/BasePlayer.java
library/common/src/main/java/com/google/android/exoplayer2/BasePlayer.java
View file @
e2f1285a
...
@@ -314,6 +314,12 @@ public abstract class BasePlayer implements Player {
...
@@ -314,6 +314,12 @@ public abstract class BasePlayer implements Player {
:
timeline
.
getWindow
(
getCurrentWindowIndex
(),
window
).
getDurationMs
();
:
timeline
.
getWindow
(
getCurrentWindowIndex
(),
window
).
getDurationMs
();
}
}
/**
* Returns the {@link Commands} available in the player.
*
* @param permanentAvailableCommands The commands permanently available in the player.
* @return The available {@link Commands}.
*/
protected
Commands
getAvailableCommands
(
Commands
permanentAvailableCommands
)
{
protected
Commands
getAvailableCommands
(
Commands
permanentAvailableCommands
)
{
return
new
Commands
.
Builder
()
return
new
Commands
.
Builder
()
.
addAll
(
permanentAvailableCommands
)
.
addAll
(
permanentAvailableCommands
)
...
...
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