librespot/protocol/proto/state_restore/player_model.proto
2024-12-16 22:57:13 +01:00

38 lines
939 B
Protocol Buffer

syntax = "proto2";
package spotify.player.proto.state_restore;
import "context_player_options.proto";
import "state_restore/player_session_queue.proto";
message PlayerModel {
message ConfigurationEntry {
optional string key = 1;
optional string value = 2;
}
enum AdvanceReason {
SKIP_TO_PREV_TRACK = 1;
SKIP_TO_NEXT_TRACK = 2;
EXTERNAL_ADVANCE = 3;
INTERRUPTED = 4;
SWITCHED_TO_VIDEO = 5;
SWITCHED_TO_AUDIO = 6;
}
enum StartReason {
PLAY_CONTEXT = 1;
PLAY_CONTEXT_TRACK = 2;
STATE_RESTORE = 3;
REMOTE_TRANSFER = 4;
}
required ContextPlayerOptions options = 1;
repeated PlayerModel.ConfigurationEntry configuration = 2;
required PlayerSessionQueue session_queue = 3;
required PlayerModel.AdvanceReason last_advance_reason = 4;
optional PlayerModel.StartReason last_start_reason = 5;
required string prev_state_id = 6;
optional string override_state_id = 7;
}