mirror of
https://github.com/danog/termux-api.git
synced 2025-01-23 05:41:09 +01:00
parent
9c104aac36
commit
7bdd53008a
@ -125,16 +125,16 @@ public class MediaPlayerAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected static MediaCommandHandler getMediaCommandHandler(final String command) {
|
protected static MediaCommandHandler getMediaCommandHandler(final String command) {
|
||||||
switch (command == null ? "" : command.toUpperCase()) {
|
switch (command == null ? "" : command) {
|
||||||
case "INFO":
|
case "info":
|
||||||
return infoHandler;
|
return infoHandler;
|
||||||
case "PLAY":
|
case "play":
|
||||||
return playHandler;
|
return playHandler;
|
||||||
case "PAUSE":
|
case "pause":
|
||||||
return pauseHandler;
|
return pauseHandler;
|
||||||
case "RESUME":
|
case "resume":
|
||||||
return resumeHandler;
|
return resumeHandler;
|
||||||
case "STOP":
|
case "stop":
|
||||||
return stopHandler;
|
return stopHandler;
|
||||||
default:
|
default:
|
||||||
return new MediaCommandHandler() {
|
return new MediaCommandHandler() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user