rtcevent.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <!doctype html>
  2. <html class="default no-js">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>RtcEvent | @urtc/sdk-web</title>
  7. <meta name="description" content="Documentation for @urtc/sdk-web">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="stylesheet" href="../assets/css/main.css">
  10. <script async src="../assets/js/search.js" id="search-script"></script>
  11. </head>
  12. <body>
  13. <header>
  14. <div class="tsd-page-toolbar">
  15. <div class="container">
  16. <div class="table-wrap">
  17. <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
  18. <div class="field">
  19. <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
  20. <input id="tsd-search-field" type="text" />
  21. </div>
  22. <ul class="results">
  23. <li class="state loading">Preparing search index...</li>
  24. <li class="state failure">The search index is not available</li>
  25. </ul>
  26. <a href="../index.html" class="title">@urtc/sdk-web</a>
  27. </div>
  28. <div class="table-cell" id="tsd-widgets">
  29. <div id="tsd-filter">
  30. <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
  31. <div class="tsd-filter-group">
  32. <div class="tsd-select" id="tsd-filter-visibility">
  33. <span class="tsd-select-label">All</span>
  34. <ul class="tsd-select-list">
  35. <li data-value="public">Public</li>
  36. <li data-value="protected">Public/Protected</li>
  37. <li data-value="private" class="selected">All</li>
  38. </ul>
  39. </div>
  40. <input type="checkbox" id="tsd-filter-inherited" checked />
  41. <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
  42. <input type="checkbox" id="tsd-filter-externals" checked />
  43. <label class="tsd-widget" for="tsd-filter-externals">Externals</label>
  44. </div>
  45. </div>
  46. <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="tsd-page-title">
  52. <div class="container">
  53. <ul class="tsd-breadcrumb">
  54. <li>
  55. <a href="../index.html">@urtc/sdk-web</a>
  56. </li>
  57. <li>
  58. <a href="rtcevent.html">RtcEvent</a>
  59. </li>
  60. </ul>
  61. <h1>Interface RtcEvent&lt;T, S&gt;</h1>
  62. </div>
  63. </div>
  64. </header>
  65. <div class="container container-main">
  66. <div class="row">
  67. <div class="col-8 col-content">
  68. <section class="tsd-panel tsd-comment">
  69. <div class="tsd-comment tsd-typography">
  70. <div class="lead">
  71. <p>Rtc 事件</p>
  72. </div>
  73. <ul>
  74. <li>当 type - T 为 <a href="../index.html#rtcusereventtype">RtcUserEventType</a> 事件时,data - S 为 <a href="../classes/user.html">User</a> 类型</li>
  75. <li>当 type - T 为 <a href="../index.html#rtcstreameventtype">RtcStreamEventType</a> 事件时,data - S 为 <a href="../classes/localstream.html">LocalStream</a> | <a href="../classes/remotestream.html">RemoteStream</a> 类型</li>
  76. <li>当 type - T 为 <a href="../index.html#rtcconnectionstateeventtype"></a> 事件时,data - S 为 <a href="connectionstates.html"></a> 类型</li>
  77. <li>当 type - T 为 <a href="../index.html#rtcnetworkqualityeventtype"></a> 事件时,data - S 为 <a href="networkqualities.html"></a> 类型</li>
  78. <li>当 type - T 为 <a href="../index.html#rtcplayereventtype"></a> 事件时,data - S 为 <a href="playereventdata.html"></a> 类型</li>
  79. <li>当 type - T 为 <a href="../index.html#rtcdevicechangedeventtype"></a> 事件时,data - S 为 {@link RtcDeviceChangedEventData } 类型</li>
  80. <li>当 type - T 为 <a href="../index.html#rtcerroreventtype"></a> 事件时,data - S 为 <a href="../classes/rtcerror.html"></a> 类型</li>
  81. </ul>
  82. </div>
  83. </section>
  84. <section class="tsd-panel tsd-type-parameters">
  85. <h3>Type parameters</h3>
  86. <ul class="tsd-type-parameters">
  87. <li>
  88. <h4>T</h4>
  89. </li>
  90. <li>
  91. <h4>S</h4>
  92. </li>
  93. </ul>
  94. </section>
  95. <section class="tsd-panel tsd-hierarchy">
  96. <h3>Hierarchy</h3>
  97. <ul class="tsd-hierarchy">
  98. <li>
  99. <span class="target">RtcEvent</span>
  100. </li>
  101. </ul>
  102. </section>
  103. <section class="tsd-panel-group tsd-index-group">
  104. <h2>Index</h2>
  105. <section class="tsd-panel tsd-index-panel">
  106. <div class="tsd-index-content">
  107. <section class="tsd-index-section ">
  108. <h3>Properties</h3>
  109. <ul class="tsd-index-list">
  110. <li class="tsd-kind-property tsd-parent-kind-interface"><a href="rtcevent.html#data" class="tsd-kind-icon">data</a></li>
  111. <li class="tsd-kind-property tsd-parent-kind-interface"><a href="rtcevent.html#type" class="tsd-kind-icon">type</a></li>
  112. </ul>
  113. </section>
  114. </div>
  115. </section>
  116. </section>
  117. <section class="tsd-panel-group tsd-member-group ">
  118. <h2>Properties</h2>
  119. <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
  120. <a name="data" class="tsd-anchor"></a>
  121. <h3>data</h3>
  122. <div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">S</span></div>
  123. <aside class="tsd-sources">
  124. </aside>
  125. </section>
  126. <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
  127. <a name="type" class="tsd-anchor"></a>
  128. <h3>type</h3>
  129. <div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">T</span></div>
  130. <aside class="tsd-sources">
  131. </aside>
  132. </section>
  133. </section>
  134. </div>
  135. <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
  136. <nav class="tsd-navigation primary">
  137. <ul>
  138. <li class=" ">
  139. <a href="../index.html">Exports</a>
  140. </li>
  141. </ul>
  142. </nav>
  143. <nav class="tsd-navigation secondary menu-sticky">
  144. <ul class="before-current">
  145. </ul>
  146. <ul class="current">
  147. <li class="current tsd-kind-interface tsd-has-type-parameter">
  148. <a href="rtcevent.html" class="tsd-kind-icon">Rtc<wbr>Event</a>
  149. <ul>
  150. <li class=" tsd-kind-property tsd-parent-kind-interface">
  151. <a href="rtcevent.html#data" class="tsd-kind-icon">data</a>
  152. </li>
  153. <li class=" tsd-kind-property tsd-parent-kind-interface">
  154. <a href="rtcevent.html#type" class="tsd-kind-icon">type</a>
  155. </li>
  156. </ul>
  157. </li>
  158. </ul>
  159. <ul class="after-current">
  160. </ul>
  161. </nav>
  162. </div>
  163. </div>
  164. </div>
  165. <footer class="with-border-bottom">
  166. <div class="container">
  167. <h2>Legend</h2>
  168. <div class="tsd-legend-group">
  169. <ul class="tsd-legend">
  170. <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
  171. <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
  172. <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
  173. </ul>
  174. <ul class="tsd-legend">
  175. <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
  176. <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
  177. </ul>
  178. <ul class="tsd-legend">
  179. <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
  180. </ul>
  181. <ul class="tsd-legend">
  182. <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
  183. </ul>
  184. </div>
  185. </div>
  186. </footer>
  187. <div class="container tsd-generator">
  188. <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
  189. </div>
  190. <div class="overlay"></div>
  191. <script src="../assets/js/main.js"></script>
  192. </body>
  193. </html>