remote.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. syntax="proto3";
  2. package remote;
  3. enum cs_message
  4. {
  5. cs_none=0;
  6. cs_req=2001;
  7. cs_rep=2002;
  8. cs_offer=2004;
  9. cs_answer=2005;
  10. cs_candidate=2006;
  11. cs_leave=2007;
  12. cs_keepAlive=2008;
  13. cs_sigin=2009;
  14. cs_robot=2010;
  15. cs_closeVideo=2011;
  16. cs_state=2014;
  17. };
  18. enum sc_message
  19. {
  20. sc_none=0;
  21. sc_req=4001;
  22. sc_rep=4002;
  23. sc_offer=4004;
  24. sc_answer=4005;
  25. sc_candidate=4006;
  26. sc_sigin =4007;
  27. sc_robot=4008;
  28. sc_NotifyReq=4009;
  29. sc_NotifyRep=4010;
  30. sc_NotifyAnswer=4011;
  31. sc_NotifyOffer=4012;
  32. sc_NotifyCandidate=4013;
  33. sc_NotifyLeave=4014;
  34. sc_NotifyAdd=4016;
  35. sc_NotifyDel=4017;
  36. sc_NotifyCloseVideo=4018;
  37. sc_NotifyState=4025;
  38. };
  39. message Offer
  40. {
  41. int32 index=1;
  42. int32 peer=2;
  43. string type=3;
  44. string sdp=4;
  45. };
  46. message Answer
  47. {
  48. int32 index=1;
  49. int32 peer=2;
  50. string type=3;
  51. string sdp=4;
  52. };
  53. message Candidate
  54. {
  55. int32 index=1;
  56. int32 peer=2;
  57. string type=3;
  58. string candidate=4;
  59. int32 sdpMLineIndex =5;
  60. string sdpMid =6;
  61. int32 egotype=7;
  62. };
  63. message CSReq
  64. {
  65. int32 peer=1;
  66. int32 index=2;
  67. int32 egotype=3;
  68. };
  69. message SCReq
  70. {
  71. int32 desc=1;
  72. int32 peer=2;
  73. int32 egotype=3;
  74. };
  75. message CSRep
  76. {
  77. int32 desc=1;
  78. int32 peer=2;
  79. int32 index=3;
  80. int32 egotype=4;
  81. };
  82. message SCRep
  83. {
  84. int32 desc=1;
  85. int32 index=2;
  86. int32 egotype=3;
  87. int32 peer=4;
  88. };
  89. message CSSigin
  90. {
  91. string account=1;
  92. int32 type=2;
  93. string name=3;
  94. string pass=4;
  95. };
  96. message SCSigin
  97. {
  98. bool ret=1;
  99. int32 uid=2;
  100. string name=3;
  101. };
  102. message Robot
  103. {
  104. int32 rid=1;
  105. string name=2;
  106. int32 type=3;
  107. int32 state=4;
  108. };
  109. message SCAddRobot
  110. {
  111. Robot robot=1;
  112. };
  113. message SCDelRobot
  114. {
  115. int32 peer=1;
  116. int32 egotype=2;
  117. };
  118. message CSRobot
  119. {
  120. };
  121. message SCRobot
  122. {
  123. repeated Robot robot=1;
  124. };
  125. message Leave
  126. {
  127. int32 peer=1;
  128. int32 egotype=2;
  129. };