-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathsteammessages_remoteplay.proto
918 lines (786 loc) · 24 KB
/
steammessages_remoteplay.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
syntax = "proto2";
option optimize_for = SPEED;
option py_generic_services = false;
enum EStreamChannel {
k_EStreamChannelInvalid = -1;
k_EStreamChannelDiscovery = 0;
k_EStreamChannelControl = 1;
k_EStreamChannelStats = 2;
k_EStreamChannelDataChannelStart = 3;
}
enum EStreamDiscoveryMessage {
k_EStreamDiscoveryPingRequest = 1;
k_EStreamDiscoveryPingResponse = 2;
}
enum EStreamControlMessage {
k_EStreamControlAuthenticationRequest = 1;
k_EStreamControlAuthenticationResponse = 2;
k_EStreamControlNegotiationInit = 3;
k_EStreamControlNegotiationSetConfig = 4;
k_EStreamControlNegotiationComplete = 5;
k_EStreamControlClientHandshake = 6;
k_EStreamControlServerHandshake = 7;
k_EStreamControlStartNetworkTest = 8;
k_EStreamControlKeepAlive = 9;
k_EStreamControl_LAST_SETUP_MESSAGE = 15;
k_EStreamControlStartAudioData = 50;
k_EStreamControlStopAudioData = 51;
k_EStreamControlStartVideoData = 52;
k_EStreamControlStopVideoData = 53;
k_EStreamControlInputMouseMotion = 54;
k_EStreamControlInputMouseWheel = 55;
k_EStreamControlInputMouseDown = 56;
k_EStreamControlInputMouseUp = 57;
k_EStreamControlInputKeyDown = 58;
k_EStreamControlInputKeyUp = 59;
k_EStreamControlInputGamepadAttached_OBSOLETE = 60;
k_EStreamControlInputGamepadEvent_OBSOLETE = 61;
k_EStreamControlInputGamepadDetached_OBSOLETE = 62;
k_EStreamControlShowCursor = 63;
k_EStreamControlHideCursor = 64;
k_EStreamControlSetCursor = 65;
k_EStreamControlGetCursorImage = 66;
k_EStreamControlSetCursorImage = 67;
k_EStreamControlDeleteCursor = 68;
k_EStreamControlSetTargetFramerate = 69;
k_EStreamControlInputLatencyTest = 70;
k_EStreamControlGamepadRumble_OBSOLETE = 71;
k_EStreamControlOverlayEnabled = 74;
k_EStreamControlInputControllerAttached_OBSOLETE = 75;
k_EStreamControlInputControllerState_OBSOLETE = 76;
k_EStreamControlTriggerHapticPulse_OBSOLETE = 77;
k_EStreamControlInputControllerDetached_OBSOLETE = 78;
k_EStreamControlVideoDecoderInfo = 80;
k_EStreamControlSetTitle = 81;
k_EStreamControlSetIcon = 82;
k_EStreamControlQuitRequest = 83;
k_EStreamControlSetQoS = 87;
k_EStreamControlInputControllerWirelessPresence_OBSOLETE = 88;
k_EStreamControlSetGammaRamp = 89;
k_EStreamControlVideoEncoderInfo = 90;
k_EStreamControlInputControllerStateHID_OBSOLETE = 93;
k_EStreamControlSetTargetBitrate = 94;
k_EStreamControlSetControllerPairingEnabled_OBSOLETE = 95;
k_EStreamControlSetControllerPairingResult_OBSOLETE = 96;
k_EStreamControlTriggerControllerDisconnect_OBSOLETE = 97;
k_EStreamControlSetActivity = 98;
k_EStreamControlSetStreamingClientConfig = 99;
k_EStreamControlSystemSuspend = 100;
k_EStreamControlSetControllerSettings_OBSOLETE = 101;
k_EStreamControlVirtualHereRequest = 102;
k_EStreamControlVirtualHereReady = 103;
k_EStreamControlVirtualHereShareDevice = 104;
k_EStreamControlSetSpectatorMode = 105;
k_EStreamControlRemoteHID = 106;
k_EStreamControlStartMicrophoneData = 107;
k_EStreamControlStopMicrophoneData = 108;
k_EStreamControlInputText = 109;
k_EStreamControlTouchConfigActive = 110;
k_EStreamControlGetTouchConfigData = 111;
k_EStreamControlSetTouchConfigData = 112;
k_EStreamControlSaveTouchConfigLayout = 113;
k_EStreamControlTouchActionSetActive = 114;
k_EStreamControlGetTouchIconData = 115;
k_EStreamControlSetTouchIconData = 116;
k_EStreamControlInputTouchFingerDown = 117;
k_EStreamControlInputTouchFingerMotion = 118;
k_EStreamControlInputTouchFingerUp = 119;
k_EStreamControlSetCaptureSize = 120;
k_EStreamControlSetFlashState = 121;
k_EStreamControlPause = 122;
k_EStreamControlResume = 123;
k_EStreamControlEnableHighResCapture = 124;
k_EStreamControlDisableHighResCapture = 125;
k_EStreamControlToggleMagnification = 126;
k_EStreamControlSetCapslock = 127;
k_EStreamControlSetKeymap = 128;
k_EStreamControlStopRequest = 129;
k_EStreamControlTouchActionSetLayerAdded = 130;
k_EStreamControlTouchActionSetLayerRemoved = 131;
k_EStreamControlRemotePlayTogetherGroupUpdate = 132;
k_EStreamControlSetInputTemporarilyDisabled = 133;
k_EStreamControlSetQualityOverride = 134;
k_EStreamControlSetBitrateOverride = 135;
k_EStreamControlShowOnScreenKeyboard = 136;
k_EStreamControlControllerConfigMsg = 137;
}
enum EStreamVersion {
k_EStreamVersionNone = 0;
k_EStreamVersionCurrent = 1;
}
enum EStreamAudioCodec {
k_EStreamAudioCodecNone = 0;
k_EStreamAudioCodecRaw = 1;
k_EStreamAudioCodecVorbis = 2;
k_EStreamAudioCodecOpus = 3;
k_EStreamAudioCodecMP3 = 4;
k_EStreamAudioCodecAAC = 5;
}
enum EStreamVideoCodec {
k_EStreamVideoCodecNone = 0;
k_EStreamVideoCodecRaw = 1;
k_EStreamVideoCodecVP8 = 2;
k_EStreamVideoCodecVP9 = 3;
k_EStreamVideoCodecH264 = 4;
k_EStreamVideoCodecHEVC = 5;
k_EStreamVideoCodecORBX1 = 6;
k_EStreamVideoCodecORBX2 = 7;
}
enum EStreamQualityPreference {
k_EStreamQualityAutomatic = -1;
k_EStreamQualityFast = 1;
k_EStreamQualityBalanced = 2;
k_EStreamQualityBeautiful = 3;
}
enum EStreamBitrate {
k_EStreamBitrateAutodetect = -1;
k_EStreamBitrateUnlimited = 0;
}
enum EStreamColorspace {
k_EStreamColorspace_Unknown = 0;
k_EStreamColorspace_BT601 = 1;
k_EStreamColorspace_BT601_Full = 2;
k_EStreamColorspace_BT709 = 3;
k_EStreamColorspace_BT709_Full = 4;
}
enum EStreamP2PScope {
k_EStreamP2PScopeAutomatic = 0;
k_EStreamP2PScopeDisabled = 1;
k_EStreamP2PScopeOnlyMe = 2;
k_EStreamP2PScopeFriends = 3;
k_EStreamP2PScopeEveryone = 4;
}
enum EStreamHostPlayAudioPreference {
k_EStreamHostPlayAudioDefault = 0;
k_EStreamHostPlayAudioAlways = 1;
}
enum EStreamingDataType {
k_EStreamingAudioData = 0;
k_EStreamingVideoData = 1;
k_EStreamingMicrophoneData = 2;
}
enum EStreamMouseButton {
k_EStreamMouseButtonLeft = 1;
k_EStreamMouseButtonRight = 2;
k_EStreamMouseButtonMiddle = 16;
k_EStreamMouseButtonX1 = 32;
k_EStreamMouseButtonX2 = 64;
k_EStreamMouseButtonUnknown = 4096;
}
enum EStreamMouseWheelDirection {
k_EStreamMouseWheelUp = 120;
k_EStreamMouseWheelDown = -120;
k_EStreamMouseWheelLeft = 3;
k_EStreamMouseWheelRight = 4;
}
enum EStreamFramerateLimiter {
k_EStreamFramerateSlowCapture = 1;
k_EStreamFramerateSlowConvert = 2;
k_EStreamFramerateSlowEncode = 4;
k_EStreamFramerateSlowNetwork = 8;
k_EStreamFramerateSlowDecode = 16;
k_EStreamFramerateSlowGame = 32;
k_EStreamFramerateSlowDisplay = 64;
}
enum EStreamActivity {
k_EStreamActivityIdle = 1;
k_EStreamActivityGame = 2;
k_EStreamActivityDesktop = 3;
k_EStreamActivitySecureDesktop = 4;
k_EStreamActivityMusic = 5;
}
enum EStreamDataMessage {
k_EStreamDataPacket = 1;
k_EStreamDataLost = 2;
}
enum EAudioFormat {
k_EAudioFormatNone = 0;
k_EAudioFormat16BitLittleEndian = 1;
k_EAudioFormatFloat = 2;
}
enum EVideoFormat {
k_EVideoFormatNone = 0;
k_EVideoFormatYV12 = 1;
k_EVideoFormatAccel = 2;
}
enum EStreamStatsMessage {
k_EStreamStatsFrameEvents = 1;
k_EStreamStatsDebugDump = 2;
k_EStreamStatsLogMessage = 3;
k_EStreamStatsLogUploadBegin = 4;
k_EStreamStatsLogUploadData = 5;
k_EStreamStatsLogUploadComplete = 6;
}
enum EStreamFrameEvent {
k_EStreamInputEventStart = 0;
k_EStreamInputEventSend = 1;
k_EStreamInputEventRecv = 2;
k_EStreamInputEventQueued = 3;
k_EStreamInputEventHandled = 4;
k_EStreamFrameEventStart = 5;
k_EStreamFrameEventCaptureBegin = 6;
k_EStreamFrameEventCaptureEnd = 7;
k_EStreamFrameEventConvertBegin = 8;
k_EStreamFrameEventConvertEnd = 9;
k_EStreamFrameEventEncodeBegin = 10;
k_EStreamFrameEventEncodeEnd = 11;
k_EStreamFrameEventSend = 12;
k_EStreamFrameEventRecv = 13;
k_EStreamFrameEventDecodeBegin = 14;
k_EStreamFrameEventDecodeEnd = 15;
k_EStreamFrameEventUploadBegin = 16;
k_EStreamFrameEventUploadEnd = 17;
k_EStreamFrameEventComplete = 18;
}
enum EStreamFrameResult {
k_EStreamFrameResultPending = 0;
k_EStreamFrameResultDisplayed = 1;
k_EStreamFrameResultDroppedNetworkSlow = 2;
k_EStreamFrameResultDroppedNetworkLost = 3;
k_EStreamFrameResultDroppedDecodeSlow = 4;
k_EStreamFrameResultDroppedDecodeCorrupt = 5;
k_EStreamFrameResultDroppedLate = 6;
k_EStreamFrameResultDroppedReset = 7;
}
enum EFrameAccumulatedStat {
k_EFrameStatFPS = 0;
k_EFrameStatCaptureDurationMS = 1;
k_EFrameStatConvertDurationMS = 2;
k_EFrameStatEncodeDurationMS = 3;
k_EFrameStatSteamDurationMS = 4;
k_EFrameStatServerDurationMS = 5;
k_EFrameStatNetworkDurationMS = 6;
k_EFrameStatDecodeDurationMS = 7;
k_EFrameStatDisplayDurationMS = 8;
k_EFrameStatClientDurationMS = 9;
k_EFrameStatFrameDurationMS = 10;
k_EFrameStatInputLatencyMS = 11;
k_EFrameStatGameLatencyMS = 12;
k_EFrameStatRoundTripLatencyMS = 13;
k_EFrameStatPingTimeMS = 14;
k_EFrameStatServerBitrateKbitPerSec = 15;
k_EFrameStatClientBitrateKbitPerSec = 16;
k_EFrameStatLinkBandwidthKbitPerSec = 17;
k_EFrameStatPacketLossPercentage = 18;
}
enum ELogFileType {
k_ELogFileSystemBoot = 0;
k_ELogFileSystemReset = 1;
k_ELogFileSystemDebug = 2;
}
enum EStreamControllerConfigMsg {
k_EStreamControllerConfigMsg_RequestConfigsForApp = 0;
k_EStreamControllerConfigMsg_ConfigResponse = 1;
k_EStreamControllerConfigMsg_PersonalizationResponse = 2;
k_EStreamControllerConfigMsg_ActiveConfigChange = 3;
k_EStreamControllerConfigMsg_RequestActiveConfig = 4;
}
message CDiscoveryPingRequest {
optional uint32 sequence = 1;
optional uint32 packet_size_requested = 2;
}
message CDiscoveryPingResponse {
optional uint32 sequence = 1;
optional uint32 packet_size_received = 2;
}
message CStreamingClientHandshakeInfo {
optional int32 network_test = 2;
}
message CClientHandshakeMsg {
required .CStreamingClientHandshakeInfo info = 1;
}
message CStreamingServerHandshakeInfo {
optional int32 mtu = 1;
}
message CServerHandshakeMsg {
required .CStreamingServerHandshakeInfo info = 1;
}
message CAuthenticationRequestMsg {
optional bytes token = 1;
optional .EStreamVersion version = 2 [default = k_EStreamVersionNone];
optional uint64 steamid = 3;
}
message CAuthenticationResponseMsg {
enum AuthenticationResult {
SUCCEEDED = 0;
FAILED = 1;
}
optional .CAuthenticationResponseMsg.AuthenticationResult result = 1 [default = SUCCEEDED];
optional .EStreamVersion version = 2 [default = k_EStreamVersionNone];
}
message CKeepAliveMsg {
}
message CStartNetworkTestMsg {
optional uint32 frames = 1;
optional uint32 framerate = 2;
optional uint32 bitrate_kbps = 3;
optional uint32 burst_bitrate_kbps = 4;
optional bool bandwidth_test = 5;
}
message CStreamVideoMode {
required uint32 width = 1;
required uint32 height = 2;
optional uint32 refresh_rate = 3;
optional uint32 refresh_rate_numerator = 4;
optional uint32 refresh_rate_denominator = 5;
}
message CStreamingClientCaps {
optional string system_info = 1;
optional bool system_can_suspend = 2;
optional int32 maximum_decode_bitrate_kbps = 3;
optional int32 maximum_burst_bitrate_kbps = 4;
optional bool supports_video_hevc = 5;
optional bool disable_steam_store = 6;
optional bool disable_client_cursor = 7;
optional bool disable_intel_hardware_encoding = 8;
optional bool disable_amd_hardware_encoding = 9;
optional bool disable_nvidia_hardware_encoding = 10;
optional int32 form_factor = 11;
optional bool has_on_screen_keyboard = 12;
repeated .EStreamColorspace supported_colorspaces = 13;
}
message CStreamingClientConfig {
optional .EStreamQualityPreference quality = 1 [default = k_EStreamQualityBalanced];
optional uint32 maximum_resolution_x = 2;
optional uint32 maximum_resolution_y = 3;
optional uint32 maximum_framerate_numerator = 4;
optional uint32 maximum_framerate_denominator = 5;
optional int32 maximum_bitrate_kbps = 6 [default = -1];
optional bool enable_hardware_decoding = 7 [default = true];
optional bool enable_performance_overlay = 8 [default = false];
optional bool enable_video_streaming = 9 [default = true];
optional bool enable_audio_streaming = 10 [default = true];
optional bool enable_input_streaming = 11 [default = true];
optional int32 audio_channels = 12 [default = 2];
optional bool enable_video_hevc = 13 [default = false];
optional bool enable_performance_icons = 14 [default = true];
optional bool enable_microphone_streaming = 15 [default = false];
optional string controller_overlay_hotkey = 16;
optional bool enable_touch_controller = 17 [default = false];
optional .EStreamP2PScope p2p_scope = 19 [default = k_EStreamP2PScopeAutomatic];
}
message CStreamingServerConfig {
optional bool change_desktop_resolution = 1;
optional bool dynamically_adjust_resolution = 2;
optional bool enable_capture_nvfbc = 3;
optional bool enable_hardware_encoding_nvidia = 4;
optional bool enable_hardware_encoding_amd = 5;
optional bool enable_hardware_encoding_intel = 6;
optional int32 software_encoding_threads = 7;
optional bool enable_traffic_priority = 8;
optional .EStreamHostPlayAudioPreference host_play_audio = 9 [default = k_EStreamHostPlayAudioDefault];
}
message CNegotiatedConfig {
optional bool reliable_data = 1;
optional .EStreamAudioCodec selected_audio_codec = 2 [default = k_EStreamAudioCodecNone];
optional .EStreamVideoCodec selected_video_codec = 3 [default = k_EStreamVideoCodecNone];
repeated .CStreamVideoMode available_video_modes = 4;
optional bool enable_remote_hid = 5;
optional bool enable_touch_input = 6;
optional bool disable_client_cursor = 7;
}
message CNegotiationInitMsg {
optional bool reliable_data = 1;
repeated .EStreamAudioCodec supported_audio_codecs = 2;
repeated .EStreamVideoCodec supported_video_codecs = 3;
optional bool supports_remote_hid = 4;
optional bool supports_touch_input = 5;
}
message CNegotiationSetConfigMsg {
required .CNegotiatedConfig config = 1;
optional .CStreamingClientConfig streaming_client_config = 2;
optional .CStreamingClientCaps streaming_client_caps = 3;
}
message CNegotiationCompleteMsg {
}
message CStartAudioDataMsg {
required uint32 channel = 2;
optional .EStreamAudioCodec codec = 3 [default = k_EStreamAudioCodecNone];
optional bytes codec_data = 4;
optional uint32 frequency = 5;
optional uint32 channels = 6;
}
message CStopAudioDataMsg {
}
message CStartVideoDataMsg {
required uint32 channel = 1;
optional .EStreamVideoCodec codec = 2 [default = k_EStreamVideoCodecNone];
optional bytes codec_data = 3;
optional uint32 width = 4;
optional uint32 height = 5;
}
message CStopVideoDataMsg {
}
message CRecordedInput {
optional .EStreamControlMessage type = 1 [default = k_EStreamControlAuthenticationRequest];
optional uint32 timestamp = 2;
oneof data {
.CInputTouchFingerDownMsg finger_down = 3;
.CInputTouchFingerMotionMsg finger_motion = 4;
.CInputTouchFingerUpMsg finger_up = 5;
.CInputMouseMotionMsg mouse_motion = 6;
.CInputMouseWheelMsg mouse_wheel = 7;
.CInputMouseDownMsg mouse_down = 8;
.CInputMouseUpMsg mouse_up = 9;
.CInputKeyDownMsg key_down = 10;
.CInputKeyUpMsg key_up = 11;
.CInputTextMsg text = 12;
.CRemoteHIDMsg hid = 13;
}
}
message CRecordedInputStream {
repeated .CRecordedInput entries = 1;
}
message CInputLatencyTestMsg {
required uint32 input_mark = 1;
optional uint32 color = 2;
}
message CInputTouchFingerDownMsg {
optional uint32 input_mark = 1;
optional uint64 fingerid = 2;
optional float x_normalized = 3;
optional float y_normalized = 4;
}
message CInputTouchFingerMotionMsg {
optional uint32 input_mark = 1;
optional uint64 fingerid = 2;
optional float x_normalized = 3;
optional float y_normalized = 4;
}
message CInputTouchFingerUpMsg {
optional uint32 input_mark = 1;
optional uint64 fingerid = 2;
optional float x_normalized = 3;
optional float y_normalized = 4;
}
message CInputMouseMotionMsg {
optional uint32 input_mark = 1;
optional float x_normalized = 2;
optional float y_normalized = 3;
optional int32 dx = 4;
optional int32 dy = 5;
}
message CInputMouseWheelMsg {
optional uint32 input_mark = 1;
required .EStreamMouseWheelDirection direction = 2 [default = k_EStreamMouseWheelUp];
}
message CInputMouseDownMsg {
optional uint32 input_mark = 1;
required .EStreamMouseButton button = 2 [default = k_EStreamMouseButtonLeft];
}
message CInputMouseUpMsg {
optional uint32 input_mark = 1;
required .EStreamMouseButton button = 2 [default = k_EStreamMouseButtonLeft];
}
message CInputKeyDownMsg {
optional uint32 input_mark = 1;
required uint32 scancode = 2;
}
message CInputKeyUpMsg {
optional uint32 input_mark = 1;
required uint32 scancode = 2;
}
message CInputTextMsg {
optional uint32 input_mark = 1;
required string text_utf8 = 2;
}
message CSetTitleMsg {
optional string text = 1;
}
message CSetCaptureSizeMsg {
optional int32 width = 1;
optional int32 height = 2;
}
message CSetIconMsg {
optional int32 width = 1;
optional int32 height = 2;
optional bytes image = 3;
}
message CSetFlashStateMsg {
optional uint32 flags = 1;
optional uint32 count = 2;
optional uint32 timeout_ms = 3;
}
message CShowCursorMsg {
optional float x_normalized = 1;
optional float y_normalized = 2;
}
message CHideCursorMsg {
}
message CSetCursorMsg {
required uint64 cursor_id = 1;
}
message CGetCursorImageMsg {
required uint64 cursor_id = 1;
}
message CSetCursorImageMsg {
required uint64 cursor_id = 1;
optional int32 width = 2;
optional int32 height = 3;
optional int32 hot_x = 4;
optional int32 hot_y = 5;
optional bytes image = 6;
}
message CVideoDecoderInfoMsg {
optional string info = 1;
optional int32 threads = 2;
}
message CVideoEncoderInfoMsg {
optional string info = 1;
}
message CPauseMsg {
}
message CResumeMsg {
}
message CEnableHighResCaptureMsg {
}
message CDisableHighResCaptureMsg {
}
message CToggleMagnificationMsg {
}
message CSetCapslockMsg {
optional bool pressed = 1;
}
message CStreamingKeymapEntry {
optional int32 scancode = 1;
optional int32 normal_keycode = 2;
optional int32 shift_keycode = 3;
optional int32 capslock_keycode = 4;
optional int32 shift_capslock_keycode = 5;
optional int32 altgr_keycode = 6;
optional int32 altgr_shift_keycode = 7;
optional int32 altgr_capslock_keycode = 8;
optional int32 altgr_shift_capslock_keycode = 9;
}
message CStreamingKeymap {
repeated .CStreamingKeymapEntry entries = 1;
}
message CSetKeymapMsg {
optional .CStreamingKeymap keymap = 1;
}
message CStopRequest {
}
message CQuitRequest {
}
message CDeleteCursorMsg {
required uint64 cursor_id = 1;
}
message CSetStreamingClientConfig {
required .CStreamingClientConfig config = 1;
}
message CSetQoSMsg {
required bool use_qos = 1;
}
message CSetTargetFramerateMsg {
required uint32 framerate = 1;
optional uint32 reasons = 2;
optional uint32 framerate_numerator = 3;
optional uint32 framerate_denominator = 4;
}
message CSetTargetBitrateMsg {
required int32 bitrate = 1;
}
message COverlayEnabledMsg {
required bool enabled = 1;
}
message CSetGammaRampMsg {
optional bytes gamma_ramp = 1;
}
message CSetActivityMsg {
optional .EStreamActivity activity = 1 [default = k_EStreamActivityIdle];
optional uint32 appid = 2;
optional uint64 gameid = 3;
optional string game_name = 4;
}
message CSystemSuspendMsg {
}
message CVirtualHereRequestMsg {
optional string hostname = 1;
}
message CVirtualHereReadyMsg {
optional uint32 licensed_device_count = 1;
}
message CVirtualHereShareDeviceMsg {
optional string device_address = 1;
}
message CSetSpectatorModeMsg {
optional bool enabled = 1;
}
message CRemoteHIDMsg {
optional bytes data = 1;
optional bool active_input = 2;
}
message CTouchConfigActiveMsg {
optional uint32 appid = 1;
optional uint32 revision = 2;
optional uint64 creator = 3;
}
message CGetTouchConfigDataMsg {
optional uint32 appid = 1;
}
message CSetTouchConfigDataMsg {
optional uint32 appid = 1;
optional uint32 revision = 2;
optional bytes data = 3;
optional bytes layout = 4;
optional uint64 creator = 5;
}
message CSaveTouchConfigLayoutMsg {
optional uint32 appid = 1;
optional bytes layout = 4;
}
message CTouchActionSetActiveMsg {
optional uint32 appid = 1;
optional int32 actionset_id = 2;
}
message CTouchActionSetLayerAddedMsg {
optional uint32 appid = 1;
optional int32 actionset_id = 2;
}
message CTouchActionSetLayerRemovedMsg {
optional uint32 appid = 1;
optional int32 actionset_id = 2;
}
message CGetTouchIconDataMsg {
optional uint32 appid = 1;
optional string icon = 2;
}
message CSetTouchIconDataMsg {
optional uint32 appid = 1;
optional string icon = 2;
optional bytes data = 3;
}
message CRemotePlayTogetherGroupUpdateMsg {
message Player {
optional uint32 accountid = 1;
optional uint32 guestid = 2;
optional bool keyboard_enabled = 3;
optional bool mouse_enabled = 4;
optional bool controller_enabled = 5;
repeated uint32 controller_slots = 6;
optional bytes avatar_hash = 7;
}
repeated .CRemotePlayTogetherGroupUpdateMsg.Player players = 1;
optional int32 player_index = 2;
optional string miniprofile_location = 3;
optional string game_name = 4;
optional string avatar_location = 5;
}
message CSetInputTemporarilyDisabledMsg {
optional bool disabled = 1;
}
message CSetQualityOverrideMsg {
optional int32 value = 1;
}
message CSetBitrateOverrideMsg {
optional int32 value = 1;
}
message CShowOnScreenKeyboardMsg {
}
message CStreamDataLostMsg {
repeated uint32 packets = 1;
}
message CAudioFormat {
required .EAudioFormat format = 1 [default = k_EAudioFormatNone];
optional uint32 frequency = 2;
optional uint32 channels = 3;
}
message CVideoFormat {
required .EVideoFormat format = 1 [default = k_EVideoFormatNone];
optional uint32 width = 2;
optional uint32 height = 3;
}
message CFrameEvent {
required .EStreamFrameEvent event_id = 1 [default = k_EStreamInputEventStart];
required uint32 timestamp = 2;
}
message CFrameStats {
required uint32 frame_id = 1;
optional uint32 input_mark = 2;
repeated .CFrameEvent events = 3;
required .EStreamFrameResult result = 4 [default = k_EStreamFrameResultPending];
optional float frame_start_delta = 5;
optional float frame_display_delta = 6;
optional float ping_time = 7;
optional float server_bitrate = 8;
optional float client_bitrate = 9;
optional float link_bandwidth = 10;
optional float packet_loss = 11;
optional uint32 frame_size = 12;
}
message CFrameStatAccumulatedValue {
required .EFrameAccumulatedStat stat_type = 1 [default = k_EFrameStatFPS];
required int32 count = 2;
required float average = 3;
optional float stddev = 4;
}
message CFrameStatsListMsg {
required .EStreamingDataType data_type = 1 [default = k_EStreamingAudioData];
repeated .CFrameStats stats = 2;
repeated .CFrameStatAccumulatedValue accumulated_stats = 3;
required int32 latest_frame_id = 4;
}
message CStreamingSessionStats {
optional float frame_loss_percentage = 1;
optional float average_network_time_ms = 2;
optional float stddev_network_time_ms = 3;
}
message CDebugDumpMsg {
optional bytes screenshot = 1;
}
message CLogMsg {
optional int32 type = 1;
optional string message = 2;
}
message CLogUploadMsg {
optional .ELogFileType type = 1 [default = k_ELogFileSystemBoot];
optional bytes data = 3;
}
message CTransportSignalMsg {
message WebRTCMessage {
message Candidate {
optional string sdp_mid = 1;
optional int32 sdp_mline_index = 2;
optional string candidate = 3;
}
oneof msg {
bool greeting = 1;
string offer = 2;
string answer = 3;
.CTransportSignalMsg.WebRTCMessage.Candidate candidate = 4;
}
}
optional .CTransportSignalMsg.WebRTCMessage webrtc = 1;
repeated bytes sdr = 2;
}
message CControllerConfigMsg {
message ControllerConfigResponse {
optional uint32 appid = 1;
optional string configURL = 2;
optional uint32 controllerType = 3;
optional string controllerData = 4;
optional uint32 selectionOrder = 5;
optional bool actionBlock = 6;
}
message ControllerPersonalizationResponse {
optional string personalizationData = 1;
}
message ControllerActiveConfigChangeResponse {
optional string configURL = 2;
optional uint32 controllerType = 3;
optional string controllerData = 4;
optional uint32 selectionOrder = 5;
}
message ControllerActiveConfigMsg {
optional uint32 appid = 1;
optional string configURL = 2;
optional uint32 controllerType = 3;
optional string controllerData = 4;
}
required .EStreamControllerConfigMsg type = 1 [default = k_EStreamControllerConfigMsg_RequestConfigsForApp];
optional string controllerPath = 2;
optional uint32 appid = 3;
optional .CControllerConfigMsg.ControllerPersonalizationResponse personalizationResponse = 4;
repeated .CControllerConfigMsg.ControllerConfigResponse configResponse = 6;
optional .CControllerConfigMsg.ControllerActiveConfigMsg activeConfigChangeMsg = 7;
}