mirror of
https://github.com/LuanRT/googlevideo.git
synced 2026-07-04 12:47:01 +00:00
chore: update protos
This commit is contained in:
32
protos/video_streaming/buffered_range.proto
Normal file
32
protos/video_streaming/buffered_range.proto
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
syntax = "proto2";
|
||||
package video_streaming;
|
||||
|
||||
import "misc/common.proto";
|
||||
import "video_streaming/time_range.proto";
|
||||
|
||||
message BufferedRange {
|
||||
required .misc.FormatId format_id = 1;
|
||||
required int64 start_time_ms = 2;
|
||||
required int64 duration_ms = 3;
|
||||
required int32 start_segment_index = 4;
|
||||
required int32 end_segment_index = 5;
|
||||
optional TimeRange time_range = 6;
|
||||
optional Kob field9 = 9;
|
||||
optional YPa field11 = 11;
|
||||
optional YPa field12 = 12;
|
||||
}
|
||||
|
||||
message Kob {
|
||||
message Pa {
|
||||
optional string video_id = 1;
|
||||
optional uint64 lmt = 2;
|
||||
}
|
||||
repeated Pa EW = 1;
|
||||
}
|
||||
|
||||
message YPa {
|
||||
optional int32 field1 = 1;
|
||||
optional int32 field2 = 2;
|
||||
optional int32 field3 = 3;
|
||||
}
|
||||
@@ -1,11 +1,13 @@
|
||||
syntax = "proto2";
|
||||
package video_streaming;
|
||||
|
||||
message EncryptedRequest {
|
||||
optional bytes encrypted_onesie_request = 2;
|
||||
message EncryptedPlayerRequest {
|
||||
optional bytes context = 1; // InnerTubeContext proto?
|
||||
optional bytes encrypted_onesie_player_request = 2;
|
||||
optional bytes encrypted_client_key = 5;
|
||||
optional bytes iv = 6;
|
||||
optional bytes hmac = 7;
|
||||
optional string reverse_proxy_config = 9;
|
||||
optional bool YP = 10;
|
||||
optional bool pM = 13;
|
||||
optional bool enable_compression = 14;
|
||||
@@ -1,13 +0,0 @@
|
||||
syntax = "proto2";
|
||||
package video_streaming;
|
||||
|
||||
import "video_streaming/client_abr_state.proto";
|
||||
import "video_streaming/encrypted_request.proto";
|
||||
import "video_streaming/streamer_context.proto";
|
||||
|
||||
message OnesieInnertubeRequest {
|
||||
optional ClientAbrState client_abr_state = 2;
|
||||
optional EncryptedRequest encrypted_request = 3;
|
||||
optional bytes onesie_ustreamer_config = 4;
|
||||
optional StreamerContext streamer_context = 10;
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
syntax = "proto2";
|
||||
package video_streaming;
|
||||
|
||||
import "misc/common.proto";
|
||||
import "video_streaming/proxy_status.proto";
|
||||
|
||||
message OnesieInnertubeResponse {
|
||||
optional ProxyStatus proxy_status = 1;
|
||||
optional int32 status = 2;
|
||||
repeated .misc.HttpHeader headers = 3;
|
||||
optional bytes body = 4;
|
||||
}
|
||||
12
protos/video_streaming/onesie_player_request.proto
Normal file
12
protos/video_streaming/onesie_player_request.proto
Normal file
@@ -0,0 +1,12 @@
|
||||
syntax = "proto2";
|
||||
package video_streaming;
|
||||
|
||||
import "misc/common.proto";
|
||||
|
||||
message OnesiePlayerRequest {
|
||||
optional string url = 1;
|
||||
repeated misc.HttpHeader headers = 2;
|
||||
optional string body = 3;
|
||||
optional bool proxied_by_trusted_bandaid = 4;
|
||||
optional bool field6 = 6; // Seen this on youtube.com and the YTMusic protos. Not sure what it is yet.
|
||||
}
|
||||
11
protos/video_streaming/onesie_player_response.proto
Normal file
11
protos/video_streaming/onesie_player_response.proto
Normal file
@@ -0,0 +1,11 @@
|
||||
syntax = "proto2";
|
||||
package video_streaming;
|
||||
|
||||
import "misc/common.proto";
|
||||
|
||||
message OnesiePlayerResponse {
|
||||
optional int32 onesie_proxy_status = 1;
|
||||
optional int32 http_status = 2;
|
||||
repeated .misc.HttpHeader headers = 3;
|
||||
optional bytes body = 4;
|
||||
}
|
||||
@@ -1,12 +1,18 @@
|
||||
syntax = "proto2";
|
||||
package video_streaming;
|
||||
|
||||
import "misc/common.proto";
|
||||
import "video_streaming/client_abr_state.proto";
|
||||
import "video_streaming/encrypted_player_request.proto";
|
||||
import "video_streaming/streamer_context.proto";
|
||||
import "video_streaming/buffered_range.proto";
|
||||
|
||||
message OnesieRequest {
|
||||
optional string url = 1;
|
||||
repeated misc.HttpHeader headers = 2;
|
||||
optional string body = 3;
|
||||
optional bool field4 = 4;
|
||||
optional bool field6 = 6;
|
||||
repeated string urls = 1;
|
||||
optional ClientAbrState client_abr_state = 2;
|
||||
optional EncryptedPlayerRequest player_request = 3;
|
||||
optional bytes onesie_ustreamer_config = 4;
|
||||
optional int32 max_vp9_height = 5;
|
||||
optional int32 client_display_height = 6;
|
||||
optional StreamerContext streamer_context = 10;
|
||||
repeated BufferedRange buffered_ranges = 14;
|
||||
}
|
||||
@@ -3,17 +3,17 @@ package video_streaming;
|
||||
|
||||
import "misc/common.proto";
|
||||
import "video_streaming/client_abr_state.proto";
|
||||
import "video_streaming/time_range.proto";
|
||||
import "video_streaming/streamer_context.proto";
|
||||
import "video_streaming/buffered_range.proto";
|
||||
|
||||
message VideoPlaybackAbrRequest {
|
||||
optional ClientAbrState client_abr_state = 1;
|
||||
repeated .misc.FormatId selected_formats = 2;
|
||||
repeated BufferedRange buffered_range = 3;
|
||||
repeated .misc.FormatId selected_format_ids = 2;
|
||||
repeated BufferedRange buffered_ranges = 3;
|
||||
optional bytes video_playback_ustreamer_config = 5;
|
||||
optional Lo lo = 6;
|
||||
repeated .misc.FormatId audio_formats = 16;
|
||||
repeated .misc.FormatId video_formats = 17;
|
||||
repeated .misc.FormatId selected_audio_format_ids = 16;
|
||||
repeated .misc.FormatId selected_video_format_ids = 17;
|
||||
optional StreamerContext streamer_context = 19;
|
||||
optional OQa field21 = 21;
|
||||
optional int32 field22 = 22;
|
||||
@@ -34,32 +34,6 @@ message Lo {
|
||||
optional int32 MZ = 5;
|
||||
}
|
||||
|
||||
message Kob {
|
||||
message Pa {
|
||||
optional string video_id = 1;
|
||||
optional uint64 lmt = 2;
|
||||
}
|
||||
repeated Pa EW = 1;
|
||||
}
|
||||
|
||||
message YPa {
|
||||
optional int32 field1 = 1;
|
||||
optional int32 field2 = 2;
|
||||
optional int32 field3 = 3;
|
||||
}
|
||||
|
||||
message BufferedRange {
|
||||
required .misc.FormatId format_id = 1;
|
||||
required int64 start_time_ms = 2;
|
||||
required int64 duration_ms = 3;
|
||||
required int32 start_segment_index = 4;
|
||||
required int32 end_segment_index = 5;
|
||||
optional TimeRange time_range = 6;
|
||||
optional Kob field9 = 9;
|
||||
optional YPa field11 = 11;
|
||||
optional YPa field12 = 12;
|
||||
}
|
||||
|
||||
message OQa {
|
||||
repeated string field1 = 1;
|
||||
optional bytes field2 = 2;
|
||||
|
||||
Reference in New Issue
Block a user