Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
v1.0.12
Browse files Browse the repository at this point in the history
Proto files updated.
Thanks to postlund  (https://github.com/postlund/pyatv) to keeping it up to date.
  • Loading branch information
stickpin committed Jan 16, 2020
1 parent f13e7dc commit 0117260
Show file tree
Hide file tree
Showing 48 changed files with 513 additions and 221 deletions.
5 changes: 5 additions & 0 deletions dist/lib/protos/AudioFormatSettingsMessage.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
syntax = "proto2";

message AudioFormatSettings {
optional bytes formatSettingsPlistData = 1;
}
1 change: 1 addition & 0 deletions dist/lib/protos/ClientUpdatesConfigMessage.proto
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ message ClientUpdatesConfigMessage {
optional bool nowPlayingUpdates = 2;
optional bool volumeUpdates = 3;
optional bool keyboardUpdates = 4;
optional bool outputDeviceUpdates = 5;
}

157 changes: 82 additions & 75 deletions dist/lib/protos/CommandInfo.proto
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,82 +1,89 @@
syntax = "proto2";

enum Command {
Unknown=0;
Play=1;
Pause=2;
TogglePlayPause=3;
Stop=4;
NextTrack=5;
PreviousTrack=6;
AdvanceShuffleMode=7;
AdvanceRepeatMode=8;
BeginFastForward=9;
EndFastForward=10;
BeginRewind=11;
EndRewind=12;
Rewind15Seconds=13;
FastForward15Seconds=14;
Rewind30Seconds=15;
FastForward30Seconds=16;

SkipForward=18;
SkipBackward=19;
ChangePlaybackRate=20;
RateTrack=21;
LikeTrack=22;
DislikeTrack=23;
BookmarkTrack=24;

SeekToPlaybackPosition=45;
ChangeRepeatMode=46;
ChangeShuffleMode=47;

EnableLanguageOption=53;
DisableLanguageOption=54;
Unknown = 0;
Play = 1;
Pause = 2;
TogglePlayPause = 3;
Stop = 4;
NextTrack = 5;
PreviousTrack = 6;
AdvanceShuffleMode = 7;
AdvanceRepeatMode = 8;
BeginFastForward = 9;
EndFastForward = 10;
BeginRewind = 11;
EndRewind = 12;
Rewind15Seconds = 13;
FastForward15Seconds = 14;
Rewind30Seconds = 15;
FastForward30Seconds = 16;
SkipForward = 18;
SkipBackward = 19;
ChangePlaybackRate = 20;
RateTrack = 21;
LikeTrack = 22;
DislikeTrack = 23;
BookmarkTrack = 24;
SeekToPlaybackPosition = 45;
ChangeRepeatMode = 46;
ChangeShuffleMode = 47;
EnableLanguageOption = 53;
DisableLanguageOption = 54;
NextChapter = 25;
PreviousChapter = 26;
NextAlbum = 27;
PreviousAlbum = 28;
NextPlaylist = 29;
PreviousPlaylist = 30;
BanTrack = 31;
AddTrackToWishList = 32;
RemoveTrackFromWishList = 33;
NextInContext = 34;
PreviousInContext = 35;
ResetPlaybackTimeout = 41;
SetPlaybackQueue = 48;
AddNowPlayingItemToLibrary = 49;
CreateRadioStation = 50;
AddItemToLibrary = 51;
InsertIntoPlaybackQueue = 52;
ReorderPlaybackQueue = 55;
RemoveFromPlaybackQueue = 56;
PlayItemInPlaybackQueue = 57;
}

NextChapter=25;
PreviousChapter=26;
NextAlbum=27;
PreviousAlbum=28;
NextPlaylist=29;
PreviousPlaylist=30;
BanTrack=31;
AddTrackToWishList=32;
RemoveTrackFromWishList=33;
NextInContext=34;
PreviousInContext=35;
message CommandInfo {
enum RepeatMode {
Unknown = 0;
One = 1;
All = 2;
}

ResetPlaybackTimeout=41;
SetPlaybackQueue=48;
AddNowPlayingItemToLibrary=49;
CreateRadioStation=50;
AddItemToLibrary=51;
InsertIntoPlaybackQueue=52;
enum ShuffleMode {
Unkown = 0;
Off = 1;
Albums = 2;
Songs = 3;
}

ReorderPlaybackQueue=55;
RemoveFromPlaybackQueue=56;
PlayItemInPlaybackQueue=57;
optional Command command = 1;
optional bool enabled = 2;
optional bool active = 3;
repeated double preferredIntervals = 4;
optional string localizedTitle = 5;
optional float minimumRating = 6;
optional float maximumRating = 7;
repeated float supportedRates = 8;
optional string localizedShortTitle = 9;
optional RepeatMode repeatMode = 10;
optional ShuffleMode shuffleMode = 11;
optional int32 presentationStyle = 12;
optional int32 skipInterval = 13;
optional int32 numAvailableSkips = 14;
optional int32 skipFrequency = 15;
optional int32 canScrub = 16;
repeated int32 supportedPlaybackQueueTypes = 17;
repeated string supportedCustomQueueIdentifiers = 18;
repeated int32 supportedInsertionPositions = 19;
optional bool supportsSharedQueue = 20;
}

message CommandInfo {
optional Command command = 1;
optional bool enabled = 2;
optional bool active = 3;
repeated double preferredIntervals = 4;
optional string localizedTitle = 5;
optional float minimumRating = 6;
optional float maximumRating = 7;
repeated float supportedRates = 8;
optional string localizedShortTitle = 9;
optional int32 repeatMode = 10;
optional int32 shuffleMode = 11;
optional int32 presentationStyle = 12;
optional int32 skipInterval = 13;
optional int32 numAvailableSkips = 14;
optional int32 skipFrequency = 15;
optional int32 canScrub = 16;
repeated int32 supportedPlaybackQueueTypes = 17;
repeated string supportedCustomQueueIdentifiers = 18;
repeated int32 supportedInsertionPositions = 19;
optional bool supportsSharedQueue = 20;
}
73 changes: 43 additions & 30 deletions dist/lib/protos/CommandOptions.proto
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,34 +1,47 @@
syntax = "proto2";

message CommandOptions {
optional string sourceId = 2;
optional string mediaType = 3;
optional bool externalPlayerCommand = 4;
optional float skipInterval = 5;
optional float playbackRate = 6;
optional float rating = 7;
optional bool negative = 8;
optional double playbackPosition = 9;
optional int32 repeatMode = 10;
optional int32 shuffleMode = 11;
optional uint64 trackID = 12;
optional int64 radioStationID = 13;
optional string radioStationHash = 14;
optional bytes systemAppPlaybackQueueData = 15;
optional string destinationAppDisplayID = 16;
optional uint32 sendOptions = 17;
optional bool requestDefermentToPlaybackQueuePosition = 18;
optional string contextID = 19;
optional bool shouldOverrideManuallyCuratedQueue = 20;
optional string stationURL = 21;
optional bool shouldBeginRadioPlayback = 22;
optional int32 playbackQueueInsertionPosition = 23;
optional string contentItemID = 24;
optional int32 playbackQueueOffset = 25;
optional int32 playbackQueueDestinationOffset = 26;
optional bytes languageOption = 27;
optional bytes playbackQueueContext = 28;
optional string insertAfterContentItemID = 29;
optional string nowPlayingContentItemID = 30;
optional int32 replaceIntent = 31;
enum RepeatMode {
Unknown = 0;
One = 1;
All = 2;
}

enum ShuffleMode {
Unkown = 0;
Off = 1;
Albums = 2;
Songs = 3;
}

optional string sourceId = 2;
optional string mediaType = 3;
optional bool externalPlayerCommand = 4;
optional float skipInterval = 5;
optional float playbackRate = 6;
optional float rating = 7;
optional bool negative = 8;
optional double playbackPosition = 9;
optional RepeatMode repeatMode = 10;
optional ShuffleMode shuffleMode = 11;
optional uint64 trackID = 12;
optional int64 radioStationID = 13;
optional string radioStationHash = 14;
optional bytes systemAppPlaybackQueueData = 15;
optional string destinationAppDisplayID = 16;
optional uint32 sendOptions = 17;
optional bool requestDefermentToPlaybackQueuePosition = 18;
optional string contextID = 19;
optional bool shouldOverrideManuallyCuratedQueue = 20;
optional string stationURL = 21;
optional bool shouldBeginRadioPlayback = 22;
optional int32 playbackQueueInsertionPosition = 23;
optional string contentItemID = 24;
optional int32 playbackQueueOffset = 25;
optional int32 playbackQueueDestinationOffset = 26;
optional bytes languageOption = 27;
optional bytes playbackQueueContext = 28;
optional string insertAfterContentItemID = 29;
optional string nowPlayingContentItemID = 30;
optional int32 replaceIntent = 31;
}
21 changes: 12 additions & 9 deletions dist/lib/protos/ContentItem.proto
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ import "LanguageOption.proto";
message ContentItem {
optional string identifier = 1;
optional ContentItemMetadata metadata = 2;
optional bytes info = 3;
repeated LanguageOption availableLanguageOptions = 4;
repeated LanguageOption currentLanguageOptions = 5;
// optional Lyrics lyrics = 6;
// repeated Sections sections = 7;
optional string parentIdentifier = 8;
optional string ancestorIdentifier = 9;
optional string queueIdentifier = 10;
optional string requestIdentifier = 11;
optional bytes artworkData = 3;
optional string info = 4;
repeated LanguageOption availableLanguageOptions = 5;
repeated LanguageOption currentLanguageOptions = 6;
// optional Lyrics lyrics = 7;
// repeated Sections sections = 8;
optional string parentIdentifier = 9;
optional string ancestorIdentifier = 10;
optional string queueIdentifier = 11;
optional string requestIdentifier = 12;
optional int32 artworkDataWidth = 13;
optional int32 artworkDataHeight = 14;
}
23 changes: 21 additions & 2 deletions dist/lib/protos/ContentItemMetadata.proto
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
syntax = "proto2";

message ContentItemMetadata {
enum MediaType {
UnknownMediaType = 0;
Audio = 1;
Video = 2;
}
enum MediaSubType {
UnknownMediaSubType = 0;
Music = 1;
Podcast = 4;
AudioBook = 5;
ITunesU = 6;
}
optional string title = 1;
optional string subtitle = 2;
optional bool isContainer = 3;
Expand Down Expand Up @@ -64,8 +76,8 @@ message ContentItemMetadata {
optional float downloadProgress = 61;
optional bytes appMetricsData = 62;
optional string seriesName = 63;
optional int32 mediaType = 64;
optional int32 mediaSubType = 65;
optional MediaType mediaType = 64;
optional MediaSubType mediaSubType = 65;

optional bytes nowPlayingInfoData = 67;
optional bytes userInfoData = 68;
Expand All @@ -81,4 +93,11 @@ message ContentItemMetadata {
optional int32 artworkDataHeight = 78;
optional bytes currentPlaybackDateData = 79;
optional string artworkIdentifier = 80;
optional bool isLoading = 81;
optional bytes artworkURLTemplatesData = 82;
optional int64 legacyUniqueIdentifier = 83;
optional int32 episodeType = 84;
optional string artworkFileURL = 85;
optional string brandIdentifier = 86;
optional string localizedDurationString = 87;
}
8 changes: 4 additions & 4 deletions dist/lib/protos/CryptoPairingMessage.proto
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ extend ProtocolMessage {
}

message CryptoPairingMessage {
optional bytes pairingData = 1; // Example: <00010006 0101>
required bytes pairingData = 1; // Example: <00010006 0101>
required int32 status = 2; // Example: 0
optional bool isRetrying = 3;
optional bool isUsingSystemPairing = 4;
optional int32 state = 5;
required bool isRetrying = 3;
required bool isUsingSystemPairing = 4;
required int32 state = 5;
}
29 changes: 26 additions & 3 deletions dist/lib/protos/DeviceInfoMessage.proto
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,30 @@ message DeviceInfoMessage {
required string applicationBundleIdentifier = 5; // Example: com.example.myremote
optional string applicationBundleVersion = 6; // Example: 107
required int32 protocolVersion = 7; // Example: 1
optional int32 lastSupportedMessageType = 8;
optional bool allowsPairing = 9;
optional bool supportsSystemPairing = 10;
optional uint32 lastSupportedMessageType = 8;
optional bool supportsSystemPairing = 9;
optional bool allowsPairing = 10;
optional bool connected = 11;
optional string systemMediaApplication = 12;
optional bool supportsACL = 13;
optional bool supportsSharedQueue = 14;
optional bool supportsExtendedMotion = 15;
optional bytes bluetoothAddress = 16;
optional uint32 sharedQueueVersion = 17;
optional string deviceUID = 19;
optional string managedConfigDeviceID = 20;
optional int32 deviceClass = 21;
optional uint32 logicalDeviceCount = 22;
optional bool tightlySyncedGroup = 23;
optional bool isProxyGroupPlayer = 24;
optional string tightSyncUID = 25;
optional string groupUID = 26;
optional string groupName = 27;
// optional <> groupedDevices = 28;
optional bool isGroupLeader = 29;
optional bool isAirplayActive = 30;
optional string systemPodcastApplication = 31;
optional string enderDefaultGroupUID = 32;
repeated string airplayReceivers = 33;
optional string linkAgent = 34;
}
Loading

0 comments on commit 0117260

Please sign in to comment.