RTCStateReason.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class RTCStateReason
  5. {
  6. }
  7. public enum REMOTE_VIDEO_STATE_RTC
  8. {
  9. ///
  10. /// <summary>
  11. /// 0: The remote video is in the initial state. The SDK reports this state in the case of REMOTE_VIDEO_STATE_REASON_LOCAL_MUTED, REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED, or REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE.
  12. /// 远端视频默认初始状态。
  13. /// </summary>
  14. ///
  15. REMOTE_VIDEO_STATE_STOPPED = 0,
  16. ///
  17. /// <summary>
  18. /// 1: The first remote video packet is received.
  19. /// 本地用户已接收远端视频首包。
  20. /// </summary>
  21. ///
  22. REMOTE_VIDEO_STATE_STARTING = 1,
  23. ///
  24. /// <summary>
  25. /// 2: The remote video stream is decoded and plays normally. The SDK reports this state in the case of REMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY, REMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED, REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED or REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK_RECOVERY.
  26. /// 远端视频流正在解码,正常播放。
  27. /// </summary>
  28. ///
  29. REMOTE_VIDEO_STATE_DECODING = 2,
  30. ///
  31. /// <summary>
  32. /// 3: The remote video is frozen. The SDK reports this state in the case of REMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION or REMOTE_VIDEO_STATE_REASON_AUDIO_FALLBACK.
  33. /// 远端视频流卡顿。
  34. /// </summary>
  35. ///
  36. REMOTE_VIDEO_STATE_FROZEN = 3,
  37. ///
  38. /// <summary>
  39. /// 4: The remote video fails to start. The SDK reports this state in the case of REMOTE_VIDEO_STATE_REASON_INTERNAL.
  40. /// 远端视频流播放失败。
  41. /// </summary>
  42. ///
  43. REMOTE_VIDEO_STATE_FAILED = 4,
  44. }
  45. public enum REMOTE_AUDIO_STATE_RTC
  46. {
  47. /// <summary>
  48. /// 0: The local audio is in the initial state. The SDK reports this state in the case of REMOTE_AUDIO_REASON_LOCAL_MUTED, REMOTE_AUDIO_REASON_REMOTE_MUTED or REMOTE_AUDIO_REASON_REMOTE_OFFLINE.
  49. /// 远端音频默认初始状态。
  50. /// </summary>
  51. ///
  52. REMOTE_AUDIO_STATE_STOPPED = 0,
  53. ///
  54. /// <summary>
  55. /// 1: The first remote audio packet is received.
  56. /// 本地用户已接收远端音频首包。
  57. /// </summary>
  58. ///
  59. REMOTE_AUDIO_STATE_STARTING = 1,
  60. ///
  61. /// <summary>
  62. /// 2: The remote audio stream is decoded and plays normally. The SDK reports this state in the case of REMOTE_AUDIO_REASON_NETWORK_RECOVERY, REMOTE_AUDIO_REASON_LOCAL_UNMUTED or REMOTE_AUDIO_REASON_REMOTE_UNMUTED.
  63. /// 远端音频流正在解码,正常播放。
  64. /// </summary>
  65. ///
  66. REMOTE_AUDIO_STATE_DECODING = 2,
  67. ///
  68. /// <summary>
  69. /// 3: The remote audio is frozen. The SDK reports this state in the case of REMOTE_AUDIO_REASON_NETWORK_CONGESTION.
  70. /// 远端音频流卡顿。
  71. /// </summary>
  72. ///
  73. REMOTE_AUDIO_STATE_FROZEN = 3,
  74. ///
  75. /// <summary>
  76. /// 4: The remote audio fails to start. The SDK reports this state in the case of REMOTE_AUDIO_REASON_INTERNAL.
  77. /// 远端音频流播放失败。
  78. /// </summary>
  79. ///
  80. REMOTE_AUDIO_STATE_FAILED = 4,
  81. }
  82. public enum REMOTE_AUIDO_STATE_REASON_RTC
  83. {
  84. ///
  85. /// <summary>
  86. /// 1: Network congestion.
  87. /// 网络阻塞
  88. /// </summary>
  89. ///
  90. REMOTE_AUDIO_REASON_NETWORK_CONGESTION = 1,
  91. ///
  92. /// <summary>
  93. /// 2: Network recovery.
  94. /// 网络恢复正常
  95. /// </summary>
  96. ///
  97. REMOTE_AUDIO_REASON_NETWORK_RECOVERY = 2,
  98. ///
  99. /// <summary>
  100. /// 3: The local user stops receiving the remote audio stream or disables the audio module.
  101. /// 本地用户停止接收远端音频流或本地用户禁用音频模块
  102. /// </summary>
  103. ///
  104. REMOTE_AUDIO_REASON_LOCAL_MUTED = 3,
  105. ///
  106. /// <summary>
  107. /// 4: The local user resumes receiving the remote audio stream or enables the audio module.
  108. /// 本地用户恢复接收远端音频流或本地用户启动音频模块。
  109. /// </summary>
  110. ///
  111. REMOTE_AUDIO_REASON_LOCAL_UNMUTED = 4,
  112. ///
  113. /// <summary>
  114. /// 5: The remote user stops sending the audio stream or disables the audio module.
  115. /// 远端用户停止发送音频流或远端用户禁用音频模块。
  116. /// </summary>
  117. ///
  118. REMOTE_AUDIO_REASON_REMOTE_MUTED = 5,
  119. ///
  120. /// <summary>
  121. /// 6: The remote user resumes sending the audio stream or enables the audio module.
  122. /// 远端用户恢复发送音频流或远端用户启用音频模块。
  123. /// </summary>
  124. ///
  125. REMOTE_AUDIO_REASON_REMOTE_UNMUTED = 6,
  126. ///
  127. /// <summary>
  128. /// 7: The remote user leaves the channel.
  129. /// 远端用户离开频道。
  130. /// </summary>
  131. ///
  132. REMOTE_AUDIO_REASON_REMOTE_OFFLINE = 7
  133. }
  134. public enum REMOTE_VIDEO_STATE_REASON_RTC
  135. {
  136. ///
  137. /// <summary>
  138. /// 1: Network congestion.
  139. /// 网络阻塞。
  140. /// </summary>
  141. ///
  142. REMOTE_VIDEO_STATE_REASON_NETWORK_CONGESTION = 1,
  143. ///
  144. /// <summary>
  145. /// 2: Network recovery.
  146. /// 网络恢复正常。
  147. /// </summary>
  148. ///
  149. REMOTE_VIDEO_STATE_REASON_NETWORK_RECOVERY = 2,
  150. ///
  151. /// <summary>
  152. /// 3: The local user stops receiving the remote video stream or disables the video module.
  153. /// 本地用户停止接收远端视频流或本地用户禁用视频模块。
  154. /// </summary>
  155. ///
  156. REMOTE_VIDEO_STATE_REASON_LOCAL_MUTED = 3,
  157. ///
  158. /// <summary>
  159. /// 4: The local user resumes receiving the remote video stream or enables the video module.
  160. /// 本地用户恢复接收远端视频流或本地用户启动视频模块。
  161. /// </summary>
  162. ///
  163. REMOTE_VIDEO_STATE_REASON_LOCAL_UNMUTED = 4,
  164. ///
  165. /// <summary>
  166. /// 5: The remote user stops sending the video stream or disables the video module.
  167. /// 远端用户停止发送视频流或远端用户禁用视频模块。
  168. /// </summary>
  169. ///
  170. REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED = 5,
  171. ///
  172. /// <summary>
  173. /// 6: The remote user resumes sending the video stream or enables the video module.
  174. /// 远端用户恢复发送视频流或远端用户启用视频模块。
  175. /// </summary>
  176. ///
  177. REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED = 6,
  178. ///
  179. /// <summary>
  180. /// 7: The remote user leaves the channel.
  181. /// 远端用户离开频道。
  182. /// </summary>
  183. ///
  184. REMOTE_VIDEO_STATE_REASON_REMOTE_OFFLINE = 7,
  185. }