Browse Source

更新版本到 2.0.0-alpha.11

ChangeLog
1. 修复断线重连时,订阅错误未被捕获导致异常日志的问题
2. 添加 network-quality 事件
poplark 4 years ago
parent
commit
53ec6cea2d

File diff suppressed because it is too large
+ 1 - 1
docs/assets/js/search.js


File diff suppressed because it is too large
+ 1 - 1
docs/classes/client.html


File diff suppressed because it is too large
+ 1 - 1
docs/classes/localstream.html


File diff suppressed because it is too large
+ 1 - 1
docs/classes/remotestream.html


File diff suppressed because it is too large
+ 1 - 1
docs/classes/stream.html


File diff suppressed because it is too large
+ 63 - 2
docs/index.html


+ 41 - 14
docs/interfaces/connectionstates.html

@@ -7,6 +7,7 @@
 	<meta name="description" content="Documentation for @urtc/sdk-web">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<link rel="stylesheet" href="../assets/css/main.css">
+	<script async src="../assets/js/search.js" id="search-script"></script>
 </head>
 <body>
 <header>
@@ -51,7 +52,7 @@
 		<div class="container">
 			<ul class="tsd-breadcrumb">
 				<li>
-					<a href="../index.html">Globals</a>
+					<a href="../index.html">@urtc/sdk-web</a>
 				</li>
 				<li>
 					<a href="connectionstates.html">ConnectionStates</a>
@@ -83,39 +84,49 @@
 				<h2>Index</h2>
 				<section class="tsd-panel tsd-index-panel">
 					<div class="tsd-index-content">
-						<section class="tsd-index-section tsd-is-external">
+						<section class="tsd-index-section ">
 							<h3>Properties</h3>
 							<ul class="tsd-index-list">
-								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><a href="connectionstates.html#current" class="tsd-kind-icon">current</a></li>
-								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><a href="connectionstates.html#previous" class="tsd-kind-icon">previous</a></li>
+								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="connectionstates.html#current" class="tsd-kind-icon">current</a></li>
+								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="connectionstates.html#previous" class="tsd-kind-icon">previous</a></li>
 							</ul>
 						</section>
 					</div>
 				</section>
 			</section>
-			<section class="tsd-panel-group tsd-member-group tsd-is-external">
+			<section class="tsd-panel-group tsd-member-group ">
 				<h2>Properties</h2>
-				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-external">
+				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
 					<a name="current" class="tsd-anchor"></a>
 					<h3>current</h3>
-					<div class="tsd-signature tsd-kind-icon">current<span class="tsd-signature-symbol">:</span> <a href="../index.html#connectionstate" class="tsd-signature-type">ConnectionState</a></div>
+					<div class="tsd-signature tsd-kind-icon">current<span class="tsd-signature-symbol">:</span> <a href="../index.html#connectionstate" class="tsd-signature-type" data-tsd-kind="Type alias">ConnectionState</a></div>
 					<aside class="tsd-sources">
 					</aside>
+					<div class="tsd-comment tsd-typography">
+						<div class="lead">
+							<p>当前连接状态</p>
+						</div>
+					</div>
 				</section>
-				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-external">
+				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
 					<a name="previous" class="tsd-anchor"></a>
 					<h3>previous</h3>
-					<div class="tsd-signature tsd-kind-icon">previous<span class="tsd-signature-symbol">:</span> <a href="../index.html#connectionstate" class="tsd-signature-type">ConnectionState</a></div>
+					<div class="tsd-signature tsd-kind-icon">previous<span class="tsd-signature-symbol">:</span> <a href="../index.html#connectionstate" class="tsd-signature-type" data-tsd-kind="Type alias">ConnectionState</a></div>
 					<aside class="tsd-sources">
 					</aside>
+					<div class="tsd-comment tsd-typography">
+						<div class="lead">
+							<p>之前连接状态</p>
+						</div>
+					</div>
 				</section>
 			</section>
 		</div>
 		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
 			<nav class="tsd-navigation primary">
 				<ul>
-					<li class="globals  ">
-						<a href="../index.html"><em>Globals</em></a>
+					<li class=" ">
+						<a href="../index.html">Exports</a>
 					</li>
 				</ul>
 			</nav>
@@ -123,13 +134,13 @@
 				<ul class="before-current">
 				</ul>
 				<ul class="current">
-					<li class="current tsd-kind-interface tsd-is-external">
+					<li class="current tsd-kind-interface">
 						<a href="connectionstates.html" class="tsd-kind-icon">Connection<wbr>States</a>
 						<ul>
-							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-external">
+							<li class=" tsd-kind-property tsd-parent-kind-interface">
 								<a href="connectionstates.html#current" class="tsd-kind-icon">current</a>
 							</li>
-							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-external">
+							<li class=" tsd-kind-property tsd-parent-kind-interface">
 								<a href="connectionstates.html#previous" class="tsd-kind-icon">previous</a>
 							</li>
 						</ul>
@@ -145,6 +156,22 @@
 	<div class="container">
 		<h2>Legend</h2>
 		<div class="tsd-legend-group">
+			<ul class="tsd-legend">
+				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
+				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
+				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
+			</ul>
+			<ul class="tsd-legend">
+				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
+				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
+			</ul>
+			<ul class="tsd-legend">
+				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
+				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
+			</ul>
+			<ul class="tsd-legend">
+				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
+			</ul>
 		</div>
 	</div>
 </footer>

+ 184 - 0
docs/interfaces/networkqualities.html

@@ -0,0 +1,184 @@
+<!doctype html>
+<html class="default no-js">
+<head>
+	<meta charset="utf-8">
+	<meta http-equiv="X-UA-Compatible" content="IE=edge">
+	<title>NetworkQualities | @urtc/sdk-web</title>
+	<meta name="description" content="Documentation for @urtc/sdk-web">
+	<meta name="viewport" content="width=device-width, initial-scale=1">
+	<link rel="stylesheet" href="../assets/css/main.css">
+	<script async src="../assets/js/search.js" id="search-script"></script>
+</head>
+<body>
+<header>
+	<div class="tsd-page-toolbar">
+		<div class="container">
+			<div class="table-wrap">
+				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
+					<div class="field">
+						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
+						<input id="tsd-search-field" type="text" />
+					</div>
+					<ul class="results">
+						<li class="state loading">Preparing search index...</li>
+						<li class="state failure">The search index is not available</li>
+					</ul>
+					<a href="../index.html" class="title">@urtc/sdk-web</a>
+				</div>
+				<div class="table-cell" id="tsd-widgets">
+					<div id="tsd-filter">
+						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
+						<div class="tsd-filter-group">
+							<div class="tsd-select" id="tsd-filter-visibility">
+								<span class="tsd-select-label">All</span>
+								<ul class="tsd-select-list">
+									<li data-value="public">Public</li>
+									<li data-value="protected">Public/Protected</li>
+									<li data-value="private" class="selected">All</li>
+								</ul>
+							</div>
+							<input type="checkbox" id="tsd-filter-inherited" checked />
+							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
+							<input type="checkbox" id="tsd-filter-externals" checked />
+							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
+						</div>
+					</div>
+					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
+				</div>
+			</div>
+		</div>
+	</div>
+	<div class="tsd-page-title">
+		<div class="container">
+			<ul class="tsd-breadcrumb">
+				<li>
+					<a href="../index.html">@urtc/sdk-web</a>
+				</li>
+				<li>
+					<a href="networkqualities.html">NetworkQualities</a>
+				</li>
+			</ul>
+			<h1>Interface NetworkQualities</h1>
+		</div>
+	</div>
+</header>
+<div class="container container-main">
+	<div class="row">
+		<div class="col-8 col-content">
+			<section class="tsd-panel tsd-comment">
+				<div class="tsd-comment tsd-typography">
+					<div class="lead">
+						<p>推(上行)/拉(下行)流的网络质量</p>
+					</div>
+				</div>
+			</section>
+			<section class="tsd-panel tsd-hierarchy">
+				<h3>Hierarchy</h3>
+				<ul class="tsd-hierarchy">
+					<li>
+						<span class="target">NetworkQualities</span>
+					</li>
+				</ul>
+			</section>
+			<section class="tsd-panel-group tsd-index-group">
+				<h2>Index</h2>
+				<section class="tsd-panel tsd-index-panel">
+					<div class="tsd-index-content">
+						<section class="tsd-index-section ">
+							<h3>Properties</h3>
+							<ul class="tsd-index-list">
+								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="networkqualities.html#downlink" class="tsd-kind-icon">downlink</a></li>
+								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="networkqualities.html#uplink" class="tsd-kind-icon">uplink</a></li>
+							</ul>
+						</section>
+					</div>
+				</section>
+			</section>
+			<section class="tsd-panel-group tsd-member-group ">
+				<h2>Properties</h2>
+				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+					<a name="downlink" class="tsd-anchor"></a>
+					<h3>downlink</h3>
+					<div class="tsd-signature tsd-kind-icon">downlink<span class="tsd-signature-symbol">:</span> <a href="../index.html#networkquality" class="tsd-signature-type" data-tsd-kind="Type alias">NetworkQuality</a></div>
+					<aside class="tsd-sources">
+					</aside>
+					<div class="tsd-comment tsd-typography">
+						<div class="lead">
+							<p>拉(下行)流的网络质量</p>
+						</div>
+					</div>
+				</section>
+				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+					<a name="uplink" class="tsd-anchor"></a>
+					<h3>uplink</h3>
+					<div class="tsd-signature tsd-kind-icon">uplink<span class="tsd-signature-symbol">:</span> <a href="../index.html#networkquality" class="tsd-signature-type" data-tsd-kind="Type alias">NetworkQuality</a></div>
+					<aside class="tsd-sources">
+					</aside>
+					<div class="tsd-comment tsd-typography">
+						<div class="lead">
+							<p>推(上行)流的网络质量</p>
+						</div>
+					</div>
+				</section>
+			</section>
+		</div>
+		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
+			<nav class="tsd-navigation primary">
+				<ul>
+					<li class=" ">
+						<a href="../index.html">Exports</a>
+					</li>
+				</ul>
+			</nav>
+			<nav class="tsd-navigation secondary menu-sticky">
+				<ul class="before-current">
+				</ul>
+				<ul class="current">
+					<li class="current tsd-kind-interface">
+						<a href="networkqualities.html" class="tsd-kind-icon">Network<wbr>Qualities</a>
+						<ul>
+							<li class=" tsd-kind-property tsd-parent-kind-interface">
+								<a href="networkqualities.html#downlink" class="tsd-kind-icon">downlink</a>
+							</li>
+							<li class=" tsd-kind-property tsd-parent-kind-interface">
+								<a href="networkqualities.html#uplink" class="tsd-kind-icon">uplink</a>
+							</li>
+						</ul>
+					</li>
+				</ul>
+				<ul class="after-current">
+				</ul>
+			</nav>
+		</div>
+	</div>
+</div>
+<footer class="with-border-bottom">
+	<div class="container">
+		<h2>Legend</h2>
+		<div class="tsd-legend-group">
+			<ul class="tsd-legend">
+				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
+				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
+				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
+			</ul>
+			<ul class="tsd-legend">
+				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
+				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
+			</ul>
+			<ul class="tsd-legend">
+				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
+				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
+			</ul>
+			<ul class="tsd-legend">
+				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
+			</ul>
+		</div>
+	</div>
+</footer>
+<div class="container tsd-generator">
+	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
+</div>
+<div class="overlay"></div>
+<script src="../assets/js/main.js"></script>
+</body>
+</html>

+ 1 - 1
docs/interfaces/rtcevent.html

@@ -72,7 +72,7 @@
 					</div>
 					<p>当 type - T 为 <a href="../index.html#rtcusereventtype">RtcUserEventType</a> 事件时,data - S 为 <a href="../classes/user.html">User</a> 类型
 						当 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> 类型
-					当 type - T 为 <a href="../index.html#rtcconnectioneventtype"></a> 事件时,data - S 为 {@link ConnectionStates } 类型</p>
+					当 type - T 为 <a href="../index.html#rtcconnectioneventtype"></a> 事件时,data - S 为 <a href="connectionstates.html"></a> 类型</p>
 				</div>
 			</section>
 			<section class="tsd-panel tsd-type-parameters">

+ 64 - 125
lib/index.d.ts

@@ -92,6 +92,7 @@ declare module '@urtc/sdk-web' {
   export * from '__@urtc/sdk-web/stream/stream';
   export * from '__@urtc/sdk-web/stream/local-stream';
   export * from '__@urtc/sdk-web/stream/remote-stream';
+  export * from '__@urtc/sdk-web/connection/types';
   export * from '__@urtc/sdk-web/server';
   export * from '__@urtc/sdk-web/plugin';
   export * from '__@urtc/sdk-web/version';
@@ -785,8 +786,9 @@ declare module '__@urtc/sdk-web/event' {
   import { User } from '__@urtc/sdk-web/user/user';
   import { Stream } from '__@urtc/sdk-web/stream/stream';
   import { ConnectionStates } from '__@urtc/sdk-web/connection/types';
-  import { LocalStream } from '__@urtc/sdk-web/';
+  import { LocalStream } from '__@urtc/sdk-web/stream/local-stream';
   import { RemoteStream } from '__@urtc/sdk-web/stream/remote-stream';
+  import { NetworkQualities } from '__@urtc/sdk-web/stream/types';
   /**
     * Rtc 用户事件类型:
     *
@@ -882,6 +884,7 @@ declare module '__@urtc/sdk-web/event' {
     *
     * {@link RtcConnectionEvent 连接事件}
     * - connection-state-changed - 连接状态改变
+    * - network-quality - 上/下行网络质量
     * @public
     * @example
     * ```js
@@ -889,8 +892,13 @@ declare module '__@urtc/sdk-web/event' {
     *   console.log(`连接状态:${event.data.previous} => ${event.data.current}`);
     * });
     * ```
+    * ```js
+    * client.on('network-quality', (event) => {
+    *   console.log(`上行 / 下行网络质量:${event.data.uplink} / ${event.data.downlink}`);
+    * });
+    * ```
     */
-  export type RtcConnectionEventType = 'connection-state-changed';
+  export type RtcConnectionEventType = 'connection-state-changed' | 'network-quality';
   /**
     * Rtc 事件类型
     * @public
@@ -922,7 +930,7 @@ declare module '__@urtc/sdk-web/event' {
     * Rtc 连接事件,事件类型参见 {@link RtcConnectionEventType}
     * @public
     */
-  export type RtcConnectionEvent = RtcEvent<RtcConnectionEventType, ConnectionStates>;
+  export type RtcConnectionEvent = RtcEvent<RtcConnectionEventType, ConnectionStates | NetworkQualities>;
   /**
     * Rtc 连接事件,事件类型参见 {@link RtcPlayerEventType}
     * @public
@@ -1260,6 +1268,32 @@ declare module '__@urtc/sdk-web/stream/types' {
     * @public
     */
   export type SwitchDeviceType = 'audio' | 'video';
+  /**
+    * 流的网络质量评分,有 '0' | '1' | '2' | '3' | '4' | '5' | '6'
+    * - '0': 网络质量未知
+    * - '1': 网络质量优秀
+    * - '2': 网络质量良好
+    * - '3': 网络质量一般
+    * - '4': 网络质量较差
+    * - '5': 网络质量糟糕
+    * - '6': 网络连接断开
+    * @public
+    */
+  export type NetworkQuality = '0' | '1' | '2' | '3' | '4' | '5' | '6';
+  /**
+    * 推(上行)/拉(下行)流的网络质量
+    * @public
+    */
+  export interface NetworkQualities {
+      /**
+        * 推(上行)流的网络质量
+        */
+      uplink: NetworkQuality;
+      /**
+        * 拉(下行)流的网络质量
+        */
+      downlink: NetworkQuality;
+  }
 }
 
 declare module '__@urtc/sdk-web/stream/stream' {
@@ -1487,6 +1521,33 @@ declare module '__@urtc/sdk-web/stream/remote-stream' {
   }
 }
 
+declare module '__@urtc/sdk-web/connection/types' {
+  /**
+    * 连接状态类型:
+    * - OPEN - 已连接
+    * - CONNECTING - 连接中
+    * - CLOSING - 断开中
+    * - RECONNECTING - 重连中
+    * - CLOSED - 已断开
+    * @public
+    */
+  export type ConnectionState = 'OPEN' | 'CONNECTING' | 'CLOSING' | 'RECONNECTING' | 'CLOSED';
+  /**
+    * 客户端(Client)与服务器之间的{@link ConnectionState 连接状态}
+    * @public
+    */
+  export interface ConnectionStates {
+      /**
+        * 当前连接状态
+        */
+      current: ConnectionState;
+      /**
+        * 之前连接状态
+        */
+      previous: ConnectionState;
+  }
+}
+
 declare module '__@urtc/sdk-web/server' {
   /**
     * 服务器配置,可设置置网关(gateway)、信令(signal)、日志(log)服务器地址
@@ -1654,125 +1715,3 @@ declare module '__@urtc/sdk-web/stream/profile' {
   }
 }
 
-declare module '__@urtc/sdk-web/connection/types' {
-  /**
-    * 连接状态类型:
-    * - OPEN - 已连接
-    * - CONNECTING - 连接中
-    * - CLOSING - 断开中
-    * - RECONNECTING - 重连中
-    * - CLOSED - 已断开
-    * @public
-    */
-  export type ConnectionState = 'OPEN' | 'CONNECTING' | 'CLOSING' | 'RECONNECTING' | 'CLOSED';
-  /**
-    * 客户端(Client)与服务器之间的{@link ConnectionState 连接状态}
-    * @public
-    */
-  export interface ConnectionStates {
-      current: ConnectionState;
-      previous: ConnectionState;
-  }
-}
-
-declare module '__@urtc/sdk-web/' {
-  import { Client } from '__@urtc/sdk-web/client';
-  import { LocalStream, LocalStreamOptions } from '__@urtc/sdk-web/stream/local-stream';
-  import { generateToken } from '__@urtc/sdk-web/utils/token';
-  import { ClientOptions } from '__@urtc/sdk-web/types';
-  import { LogLevel } from '__@urtc/sdk-web/logger';
-  /**
-    * 创建客户端
-    * @param appId - 应用 ID,可在控制台查看
-    * @param opts - 定义客户端的属性
-    * @public
-    * @example
-    * ```js
-    * const client = createClient('AppID');
-    * client
-    *   .join('roomId', 'userId', 'token')
-    *   .then(() => {
-    *     client.publish(localStream);
-    *   })
-    *   .catch((err) => {
-    *     console.log(`加入房间失败 ${err}`);
-    *   });
-    * ```
-    * @throws {@link RtcError}
-    */
-  export function createClient(appId: string, opts?: ClientOptions): Client;
-  /**
-    * 创建本地流
-    * @param opts - 必传,定义本地音视频流的属性
-    * 注:
-    * 1. video, screen 不可同时为 true
-    * 2. audio, video, screen 不可同时为 false
-    * 3. 若指定了 file,则 init 时将优先使用 file 来创建初始化本地流的视频
-    * 4. screenAudio 在不同浏览器上表现不同,参见 {@link LocalStreamOptions}
-    * @public
-    * @example
-    * ```js
-    * const localStream = createStream({ audio: true, video: true, screen: false });
-    * localStream
-    *   .init()
-    *   .then(() => {
-    *     localStream
-    *       .play(container)
-    *       .catch((err) => {console.log(`播放失败: ${err}`)});
-    *   })
-    *   .catch((err) => {
-    *     console.log(`本地流初始化失败 ${err}`);
-    *   });
-    * ```
-    * @throws {@link RtcError}
-    */
-  export function createStream(opts: LocalStreamOptions): LocalStream;
-  /**
-    * 设置日志打印级别,用于打印出更多日志来调试或定位问题,默认 warn 级别
-    * @param level - 日志级别,有 'debug', 'info', 'warn', 'error' 级别;
-    * @public
-    * @example
-    * ```js
-    * setLogLevel('info');
-    * ```
-    */
-  export function setLogLevel(level: LogLevel): void;
-  /**
-    * 开启日志(操作/错误/状态)的上报,默认开启
-    * @public
-    * @example
-    * ```js
-    * enableUploadLog();
-    * ```
-    */
-  export function enableUploadLog(): void;
-  /**
-    * 关闭日志(操作/错误/状态)的上报
-    * 注:若无特殊原因,不建议关闭日志上报,关闭后,在线上出现错误时,将无法根据日志定位问题
-    * @public
-    * @example
-    * ```js
-    * disableUploadLog();
-    * ```
-    */
-  export function disableUploadLog(): void;
-  export { generateToken };
-  export * from '__@urtc/sdk-web/devices';
-  export * from '__@urtc/sdk-web/client';
-  export * from '__@urtc/sdk-web/types';
-  export * from '__@urtc/sdk-web/event';
-  export * from '__@urtc/sdk-web/error';
-  export * from '__@urtc/sdk-web/user/user';
-  export * from '__@urtc/sdk-web/stream/types';
-  export * from '__@urtc/sdk-web/stream/stream';
-  export * from '__@urtc/sdk-web/stream/local-stream';
-  export * from '__@urtc/sdk-web/stream/remote-stream';
-  export * from '__@urtc/sdk-web/server';
-  export * from '__@urtc/sdk-web/plugin';
-  export * from '__@urtc/sdk-web/version';
-  /************** 4 plugin ****************/
-  export { Client };
-  export { LocalStream };
-  export { RemoteStream } from '__@urtc/sdk-web/stream/remote-stream';
-}
-

File diff suppressed because it is too large
+ 5 - 5
lib/index.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@urtc/sdk-web",
-  "version": "2.0.0-alpha.10",
+  "version": "2.0.0-alpha.11",
   "description": "UCloud RTC javascript SDK",
   "main": "lib/index.js",
   "types": "lib/index.d.ts",