Browse Source

更新版本到 2.0.0-beta.9

ChangeLog
1. 优化 network-quality 质量评估,提高准确性
2. 修复播放流成功后,后续播放仍受自动播放限制的问题
3. 修复闹铃打断推流的音频无法恢复的问题
4. 修正文档 customProfile 部分
poplark 4 years ago
parent
commit
1d7ac0a062
8 changed files with 53 additions and 32 deletions
  1. 1 1
      README.md
  2. 1 1
      docs/assets/js/search.js
  3. 4 4
      docs/classes/localstream.html
  4. 4 0
      docs/index.html
  5. 36 19
      docs/interfaces/customvideoprofile.html
  6. 1 1
      lib/index.d.ts
  7. 5 5
      lib/index.js
  8. 1 1
      package.json

+ 1 - 1
README.md

@@ -92,7 +92,7 @@ LocalStream 对象包含以下方法:
 * [replaceTrack](https://ucloud.github.io/urtc-sdk-web/classes/localstream.html#replacetrack) - 替换当前流中的媒体轨道
 * [resume](https://ucloud.github.io/urtc-sdk-web/classes/localstream.html#resume) - 恢复播放流,一般由于浏览器限制无法自动播放时,可提示用户手动触发该方法进行恢复播放
 * [setScreenProfile](https://ucloud.github.io/urtc-sdk-web/classes/localstream.html#setscreenprofile) - 设置当前流(屏幕共享时)视频的 Profile,默认 '1080p'
-* [setVideoProfile](https://ucloud.github.io/urtc-sdk-web/classes/localstream.html#setvideoprofile) - 设置当前流视频的 Profile,默认 '480p'
+* [setVideoProfile](https://ucloud.github.io/urtc-sdk-web/classes/localstream.html#setvideoprofile) - 设置当前流视频的 Profile,默认 '360p_2'
 * [snapshot](https://ucloud.github.io/urtc-sdk-web/classes/localstream.html#snapshot) - 对当前流进行截屏
 * [stop](https://ucloud.github.io/urtc-sdk-web/classes/localstream.html#stop) - 停止播放当前流
 * [switchDevice](https://ucloud.github.io/urtc-sdk-web/classes/localstream.html#switchdevice) - 切换音视频设备

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


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


+ 4 - 0
docs/index.html

@@ -80,6 +80,7 @@
 								<li class="tsd-kind-interface"><a href="interfaces/clientplugin.html" class="tsd-kind-icon">Client<wbr>Plugin</a></li>
 								<li class="tsd-kind-interface"><a href="interfaces/codecs.html" class="tsd-kind-icon">Codecs</a></li>
 								<li class="tsd-kind-interface"><a href="interfaces/connectionstates.html" class="tsd-kind-icon">Connection<wbr>States</a></li>
+								<li class="tsd-kind-interface"><a href="interfaces/customvideoprofile.html" class="tsd-kind-icon">Custom<wbr>Video<wbr>Profile</a></li>
 								<li class="tsd-kind-interface"><a href="interfaces/devicechangedeventdata.html" class="tsd-kind-icon">Device<wbr>Changed<wbr>Event<wbr>Data</a></li>
 								<li class="tsd-kind-interface"><a href="interfaces/devicedetectionoptions.html" class="tsd-kind-icon">Device<wbr>Detection<wbr>Options</a></li>
 								<li class="tsd-kind-interface"><a href="interfaces/getdevicesoptions.html" class="tsd-kind-icon">Get<wbr>Devices<wbr>Options</a></li>
@@ -1479,6 +1480,9 @@
 						<a href="interfaces/connectionstates.html" class="tsd-kind-icon">Connection<wbr>States</a>
 					</li>
 					<li class=" tsd-kind-interface">
+						<a href="interfaces/customvideoprofile.html" class="tsd-kind-icon">Custom<wbr>Video<wbr>Profile</a>
+					</li>
+					<li class=" tsd-kind-interface">
 						<a href="interfaces/devicechangedeventdata.html" class="tsd-kind-icon">Device<wbr>Changed<wbr>Event<wbr>Data</a>
 					</li>
 					<li class=" tsd-kind-interface">

+ 36 - 19
docs/interfaces/customvideoprofile.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="customvideoprofile.html">CustomVideoProfile</a>
@@ -71,7 +72,8 @@
 					</div>
 					<dl class="tsd-comment-tags">
 						<dt>example</dt>
-						<dd><pre><code class="language-js">{ <span class="hljs-attr">width</span>: <span class="hljs-number">640</span>, <span class="hljs-attr">height</span>: <span class="hljs-number">480</span>, <span class="hljs-attr">framerate</span>: <span class="hljs-number">15</span>, <span class="hljs-attr">bitrate</span>: <span class="hljs-number">500</span> }</code></pre>
+						<dd><pre><code class="language-js"><span style="color: #000000">{ width: </span><span style="color: #098658">640</span><span style="color: #000000">, height: </span><span style="color: #098658">480</span><span style="color: #000000">, framerate: </span><span style="color: #098658">15</span><span style="color: #000000">, bitrate: </span><span style="color: #098658">500</span><span style="color: #000000"> }</span>
+</code></pre>
 						</dd>
 					</dl>
 				</div>
@@ -88,21 +90,21 @@
 				<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="customvideoprofile.html#bitrate" class="tsd-kind-icon">bitrate</a></li>
-								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><a href="customvideoprofile.html#framerate" class="tsd-kind-icon">framerate</a></li>
-								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><a href="customvideoprofile.html#height" class="tsd-kind-icon">height</a></li>
-								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><a href="customvideoprofile.html#width" class="tsd-kind-icon">width</a></li>
+								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="customvideoprofile.html#bitrate" class="tsd-kind-icon">bitrate</a></li>
+								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="customvideoprofile.html#framerate" class="tsd-kind-icon">framerate</a></li>
+								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="customvideoprofile.html#height" class="tsd-kind-icon">height</a></li>
+								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="customvideoprofile.html#width" class="tsd-kind-icon">width</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="bitrate" class="tsd-anchor"></a>
 					<h3>bitrate</h3>
 					<div class="tsd-signature tsd-kind-icon">bitrate<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
@@ -114,7 +116,7 @@
 						</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="framerate" class="tsd-anchor"></a>
 					<h3>framerate</h3>
 					<div class="tsd-signature tsd-kind-icon">framerate<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
@@ -126,7 +128,7 @@
 						</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="height" class="tsd-anchor"></a>
 					<h3>height</h3>
 					<div class="tsd-signature tsd-kind-icon">height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
@@ -138,7 +140,7 @@
 						</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="width" class="tsd-anchor"></a>
 					<h3>width</h3>
 					<div class="tsd-signature tsd-kind-icon">width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
@@ -155,8 +157,8 @@
 		<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>
@@ -164,19 +166,19 @@
 				<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="customvideoprofile.html" class="tsd-kind-icon">Custom<wbr>Video<wbr>Profile</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="customvideoprofile.html#bitrate" class="tsd-kind-icon">bitrate</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="customvideoprofile.html#framerate" class="tsd-kind-icon">framerate</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="customvideoprofile.html#height" class="tsd-kind-icon">height</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="customvideoprofile.html#width" class="tsd-kind-icon">width</a>
 							</li>
 						</ul>
@@ -192,6 +194,21 @@
 	<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-interface"><span class="tsd-kind-icon">Property</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>
+			</ul>
 		</div>
 	</div>
 </footer>

+ 1 - 1
lib/index.d.ts

@@ -591,7 +591,7 @@ declare module '__@urtc/sdk-web/types' {
         */
       controls?: PlayControlsType;
   }
-  export { /*AudioProfile,*/ VideoProfile, ScreenProfile } from '__@urtc/sdk-web/stream/profile';
+  export { /*AudioProfile,*/ VideoProfile, ScreenProfile, CustomVideoProfile } from '__@urtc/sdk-web/stream/profile';
   /**
     * 房间类型:'conference' | 'live',分别对应会议模式 | 直播模式。
     * 注:

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-beta.8",
+  "version": "2.0.0-beta.9",
   "description": "UCloud RTC javascript SDK",
   "main": "lib/index.js",
   "types": "lib/index.d.ts",