rtcevent.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. <p>当 type - T 为 <a href="../index.html#rtcusereventtype">RtcUserEventType</a> 事件时,data - S 为 <a href="../classes/user.html">User</a> 类型
  74. 当 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> 类型
  75. 当 type - T 为 <a href="../index.html#rtcconnectioneventtype"></a> 事件时,data - S 为 <a href="connectionstates.html"></a> 类型</p>
  76. </div>
  77. </section>
  78. <section class="tsd-panel tsd-type-parameters">
  79. <h3>Type parameters</h3>
  80. <ul class="tsd-type-parameters">
  81. <li>
  82. <h4>T</h4>
  83. </li>
  84. <li>
  85. <h4>S</h4>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="tsd-panel tsd-hierarchy">
  90. <h3>Hierarchy</h3>
  91. <ul class="tsd-hierarchy">
  92. <li>
  93. <span class="target">RtcEvent</span>
  94. </li>
  95. </ul>
  96. </section>
  97. <section class="tsd-panel-group tsd-index-group">
  98. <h2>Index</h2>
  99. <section class="tsd-panel tsd-index-panel">
  100. <div class="tsd-index-content">
  101. <section class="tsd-index-section ">
  102. <h3>Properties</h3>
  103. <ul class="tsd-index-list">
  104. <li class="tsd-kind-property tsd-parent-kind-interface"><a href="rtcevent.html#data" class="tsd-kind-icon">data</a></li>
  105. <li class="tsd-kind-property tsd-parent-kind-interface"><a href="rtcevent.html#type" class="tsd-kind-icon">type</a></li>
  106. </ul>
  107. </section>
  108. </div>
  109. </section>
  110. </section>
  111. <section class="tsd-panel-group tsd-member-group ">
  112. <h2>Properties</h2>
  113. <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
  114. <a name="data" class="tsd-anchor"></a>
  115. <h3>data</h3>
  116. <div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">S</span></div>
  117. <aside class="tsd-sources">
  118. </aside>
  119. </section>
  120. <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
  121. <a name="type" class="tsd-anchor"></a>
  122. <h3>type</h3>
  123. <div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">T</span></div>
  124. <aside class="tsd-sources">
  125. </aside>
  126. </section>
  127. </section>
  128. </div>
  129. <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
  130. <nav class="tsd-navigation primary">
  131. <ul>
  132. <li class=" ">
  133. <a href="../index.html">Exports</a>
  134. </li>
  135. </ul>
  136. </nav>
  137. <nav class="tsd-navigation secondary menu-sticky">
  138. <ul class="before-current">
  139. </ul>
  140. <ul class="current">
  141. <li class="current tsd-kind-interface tsd-has-type-parameter">
  142. <a href="rtcevent.html" class="tsd-kind-icon">Rtc<wbr>Event</a>
  143. <ul>
  144. <li class=" tsd-kind-property tsd-parent-kind-interface">
  145. <a href="rtcevent.html#data" class="tsd-kind-icon">data</a>
  146. </li>
  147. <li class=" tsd-kind-property tsd-parent-kind-interface">
  148. <a href="rtcevent.html#type" class="tsd-kind-icon">type</a>
  149. </li>
  150. </ul>
  151. </li>
  152. </ul>
  153. <ul class="after-current">
  154. </ul>
  155. </nav>
  156. </div>
  157. </div>
  158. </div>
  159. <footer class="with-border-bottom">
  160. <div class="container">
  161. <h2>Legend</h2>
  162. <div class="tsd-legend-group">
  163. <ul class="tsd-legend">
  164. <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
  165. <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
  166. <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
  167. </ul>
  168. <ul class="tsd-legend">
  169. <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
  170. <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
  171. </ul>
  172. <ul class="tsd-legend">
  173. <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
  174. <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
  175. </ul>
  176. <ul class="tsd-legend">
  177. <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
  178. </ul>
  179. </div>
  180. </div>
  181. </footer>
  182. <div class="container tsd-generator">
  183. <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
  184. </div>
  185. <div class="overlay"></div>
  186. <script src="../assets/js/main.js"></script>
  187. </body>
  188. </html>