-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathproApiV1Capture.proto
119 lines (96 loc) · 2.51 KB
/
proApiV1Capture.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
syntax = "proto3";
package rv.data;
import "proApiV1Size.proto";
import "uuid.proto";
message API_v1_CaptureSettings {
rv.data.UUID source = 1;
repeated rv.data.API_v1_AudioRouting audio_routing = 2;
oneof Destination {
rv.data.API_v1_DiskCapture disk = 3;
rv.data.API_v1_RTMPCapture rtmp = 4;
rv.data.API_v1_ResiCapture resi = 5;
}
}
message API_v1_AudioRouting {
repeated uint32 map = 1;
}
message API_v1_DiskCapture {
string file_location = 1;
string codec = 2;
rv.data.API_v1_Size resolution = 3;
double frame_rate = 4;
}
message API_v1_RTMPCapture {
string server = 1;
string key = 2;
string encoding = 3;
bool save_local = 4;
string file_location = 5;
}
message API_v1_ResiCapture {
string event_name = 1;
string event_description = 2;
string destination_group = 3;
string encoding = 4;
}
message API_v1_Capture_Request {
oneof Request {
rv.data.API_v1_Capture_Request.Status get_status = 1;
rv.data.API_v1_Capture_Request.Operation operation = 2;
rv.data.API_v1_Capture_Request.GetSettings get_settings = 3;
rv.data.API_v1_Capture_Request.SetSettings set_settings = 4;
rv.data.API_v1_Capture_Request.Encodings get_encodings = 5;
}
message Status {
}
message Operation {
enum CaptureOperation {
start = 0;
stop = 1;
}
CaptureOperation operation = 1;
}
message GetSettings {
}
message SetSettings {
rv.data.API_v1_CaptureSettings settings = 1;
}
message Encodings {
enum API_v1_CaptureDestination {
disk = 0;
rtmp = 1;
resi = 2;
}
API_v1_CaptureDestination type = 1;
}
}
message API_v1_Capture_Response {
oneof Response {
rv.data.API_v1_Capture_Response.GetStatus get_status = 1;
rv.data.API_v1_Capture_Response.Operation operation = 2;
rv.data.API_v1_Capture_Response.GetSettings get_settings = 3;
rv.data.API_v1_Capture_Response.SetSettings set_settings = 4;
rv.data.API_v1_Capture_Response.Encodings get_encodings = 5;
}
message GetStatus {
enum API_v1_CaptureStatus {
active = 0;
inactive = 1;
caution = 2;
error = 3;
}
API_v1_CaptureStatus status = 1;
string capture_time = 2;
string status_text = 3;
}
message Operation {
}
message GetSettings {
rv.data.API_v1_CaptureSettings settings = 1;
}
message SetSettings {
}
message Encodings {
repeated string encodings = 1;
}
}