Document getAvailableCommands in BasePlayer

PiperOrigin-RevId: 386207381
This commit is contained in:
kimvde 2021-07-22 12:13:55 +01:00 committed by kim-vde
parent ab416f41ac
commit e2f1285ada

View file

@ -314,6 +314,12 @@ public abstract class BasePlayer implements Player {
: 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) {
return new Commands.Builder()
.addAll(permanentAvailableCommands)