Browse Source

更新版本到 1.6.0

ChangeLog
1. 修复 macOS 下 safari 浏览器发布采集麦克风的屏幕共享流时失败的问题
2. 新增用户自定义视频 profile 功能
3. 完善弱网时自动切换信令的功能
kevin.song 5 years ago
parent
commit
c027c28e45
4 changed files with 240 additions and 218 deletions
  1. 226 211
      README.md
  2. 5 5
      lib/index.js
  3. 1 1
      package.json
  4. 8 1
      types/index.d.ts

File diff suppressed because it is too large
+ 226 - 211
README.md


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


+ 1 - 1
package.json

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

+ 8 - 1
types/index.d.ts

@@ -365,9 +365,16 @@ export interface PlayOptions {
   controls?: PlayControlsOption;
 }
 
+export interface CustomVideoProfile {
+  width: number; // 640, 视频宽度
+  height: number; // 480, 视频高度
+  framerate: number; // 15, 帧率
+  bitrate: number; // 500, 比特率 kbps
+}
+
 export interface VideoProfileOptions {
   previewId?: string;
-  profile: string;
+  profile: string | CustomVideoProfile;
 }
 
 export interface MixNotification {