mirror of
https://github.com/KDE/kasts.git
synced 2024-12-18 03:29:35 +01:00
Wtf
This commit is contained in:
parent
fc5c2367a5
commit
041e2c352e
@ -2,12 +2,24 @@ package org.kde.kasts;
|
||||
|
||||
import android.util.Log;
|
||||
import androidx.media3.common.SimpleBasePlayer;
|
||||
import androidx.media3.common.Player;
|
||||
|
||||
class Receiver extends BroadcastReceiver {
|
||||
|
||||
}
|
||||
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user