浏览代码

更新版本到 1.6.25

ChangeLog
1. 修复断线重连后可能存在短时间内持续重连的问题
2. 修复断线重连后,远端流未触发 stream-reconnected 事件的问题
3. 修复强制显示播放器控制面板不生效的问题
4. 对 Effect 相关 API 修改为加入房间前可调用
5. 修正文档
6. 补全 .d.ts 中对 record 和 relay 参数的类型说明
kevin.song 4 年之前
父节点
当前提交
c4daad369d
共有 4 个文件被更改,包括 15 次插入9 次删除
  1. 3 3
      README.md
  2. 8 2
      lib/index.d.ts
  3. 3 3
      lib/index.js
  4. 1 1
      package.json

+ 3 - 3
README.md

@@ -1609,7 +1609,7 @@ MixVideoOptions 类型,类型说明
   codec: MixVideoCodec    // 视频的编码格式,MixVideoCodec 为 'h264' | 'h265' 其中之一,默认为 'h264'
   quality?: H264Quality   // 视频质量,当 codec 为 h264 时,此项起作用,H264Quality 为 'B' | 'CB' | 'M' | 'E' | 'H' 其中之一,默认为 'CB'
   frameRate?: number      // 视频帧率,可选值 6 | 12 | 15 | 24 | 30 | 48 | 60,默认为 15
-  bitRate?: number        // 视频比特率,默认为 500
+  bitRate?: number        // 视频率,默认为 500
 }
 ```
 
@@ -1871,8 +1871,8 @@ MixVideoOptions 类型,类型说明
 {
   codec: MixVideoCodec    // 视频的编码格式,MixVideoCodec 为 'h264' | 'h265' 其中之一,默认为 'h264'
   quality?: H264Quality   // 视频质量,当 codec 为 h264 时,此项起作用,H264Quality 为 'B' | 'CB' | 'M' | 'E' | 'H' 其中之一,默认为 'CB'
-  frameRate?: number      // 视频率,可选值 6 | 12 | 15 | 24 | 30 | 48 | 60,默认为 15
-  bitRate?: number        // 视频比特率,默认为 500
+  frameRate?: number      // 视频率,可选值 6 | 12 | 15 | 24 | 30 | 48 | 60,默认为 15
+  bitRate?: number        // 视频率,默认为 500
 }
 ```
 > 注:关于布局风格, 请参见详细的混流说明 [混流风格](https://github.com/UCloudDocs/urtc/blob/master/cloudRecord/RecordLaylout.md)

+ 8 - 2
lib/index.d.ts

@@ -298,7 +298,7 @@ declare module '__urtc-sdk/resolutions' {
 }
 
 declare module '__urtc-sdk/version' {
-  export const version = "1.6.24";
+  export const version = "1.6.25";
 }
 
 declare module '__urtc-sdk/token' {
@@ -545,11 +545,16 @@ declare module '__urtc-sdk/types' {
     bucket: string;
     region: string;
     layout?: MixLayoutOptions;
+    audio?: MixAudioOptions;
+    video?: MixVideoOptions;
     width?: number;
     height?: number;
     backgroundColor?: BackgroundColorOptions;
     waterMark?: WaterMarkOptions;
     streams?: MixStream[];
+    outputMode?: MixOutputMode;
+    streamAddMode?: MixStreamAddMode;
+    keyUser?: string;
   }
   export interface RecordResult {
     Id: string;
@@ -565,13 +570,14 @@ declare module '__urtc-sdk/types' {
     layout?: MixLayoutOptions;
     audio?: MixAudioOptions;
     video?: MixVideoOptions;
-    outputMode?: MixOutputMode;
     width?: number;
     height?: number;
     backgroundColor?: BackgroundColorOptions;
     waterMark?: WaterMarkOptions;
     streams?: MixStream[];
+    outputMode?: MixOutputMode;
     streamAddMode?: MixStreamAddMode;
+    keyUser?: string;
   }
   export interface RelayResult {
     Id: string;

文件差异内容过多而无法显示
+ 3 - 3
lib/index.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "urtc-sdk",
-  "version": "1.6.24",
+  "version": "1.6.25",
   "description": "UCloud RTC javascript SDK",
   "main": "lib/index.js",
   "types": "lib/index.d.ts",