Browse Source

更新版本到 1.4.19

ChangeLog
1. 增加 "320*180" 和 "320*240" profile,限制视频最小比特率为 100kps
2. 增加对预览选择前置或后置摄像头的支持
3. 修复切换图片时可能造成的过高资源消耗
4. 其他内部优化
kevin.song 5 years ago
parent
commit
b1576539ce
4 changed files with 178 additions and 174 deletions
  1. 173 170
      README.md
  2. 3 3
      lib/index.js
  3. 1 1
      package.json
  4. 1 0
      types/index.d.ts

File diff suppressed because it is too large
+ 173 - 170
README.md


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


+ 1 - 1
package.json

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

+ 1 - 0
types/index.d.ts

@@ -46,6 +46,7 @@ export interface PublishOptions {
 export interface DeviceOptions {
   audio: boolean        // 是否开启麦克风
   video: boolean        // 是否开启摄像头
+  facingMode?: FacingMode
   microphoneId?: string // 麦克风设备ID
   cameraId?: string     // 摄像头设备ID
 }