This commit is contained in:
Tobias Fella 2024-12-14 19:37:44 +01:00
parent fc5c2367a5
commit 041e2c352e
No known key found for this signature in database
GPG Key ID: E676397E8AAFFC34

View File

@ -2,12 +2,24 @@ package org.kde.kasts;
import android.util.Log; import android.util.Log;
import androidx.media3.common.SimpleBasePlayer; import androidx.media3.common.SimpleBasePlayer;
import androidx.media3.common.Player;
class Receiver extends BroadcastReceiver { class Receiver extends BroadcastReceiver {
} }
class KastsPlayer extends SimpleBasePlayer { class KastsPlayer extends SimpleBasePlayer {
@Override
public SimpleBasePlayer.State getState() {
SimpleBasePlayer.State.Builder builder = new SimpleBasePlayer.State.Builder();
Player.Commands.Builder commandsBuilder = new Player.Commands.Builder();
commandsBuilder.add(Player.COMMAND_PLAY_PAUSE);
builder.setAvailableCommands(commandsBuilder.build());
builder.setContentPositionMs(1234);
builder.setPlaybackState(Player.State.STATE_READY);
return builder.build();
}
} }
public class MediaNotification { public class MediaNotification {