bl-trtc-callkit-vue 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/bl-trtc-callkit-vue.js +1491 -1493
- package/dist/bl-trtc-callkit-vue.umd.cjs +29 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,7 +57,8 @@ onMounted(() => {
|
|
|
57
57
|
callKitRef.value.init({
|
|
58
58
|
userId: localUserId.value,
|
|
59
59
|
sdkAppId: "YOUR_SDK_APP_ID",
|
|
60
|
-
sdkSecretKey: "YOUR_SDK_SECRET_KEY"
|
|
60
|
+
sdkSecretKey: "YOUR_SDK_SECRET_KEY",
|
|
61
|
+
profile: "1080p"
|
|
61
62
|
})
|
|
62
63
|
})
|
|
63
64
|
|
|
@@ -259,11 +260,12 @@ function getIcon(type) {
|
|
|
259
260
|
|
|
260
261
|
| 方法名 | 参数 | 说明 |
|
|
261
262
|
|-------|------|------|
|
|
262
|
-
| `init` | `{ userId: string, sdkAppId: number, sdkSecretKey: string }` | 初始化组件,传入用户 ID、SDK App ID
|
|
263
|
+
| `init` | `{ userId: string, sdkAppId: number, sdkSecretKey: string, profile?: string }` | 初始化组件,传入用户 ID、SDK App ID、SDK 密钥和可选的视频分辨率(默认1440p,支持360p、720p、1080p、1440p) |
|
|
263
264
|
| `handleCall` | `targetId: string` | 发起呼叫,传入目标用户 ID |
|
|
264
265
|
| `show` | 无 | 显示通话组件 |
|
|
265
266
|
| `hide` | 无 | 隐藏通话组件 |
|
|
266
267
|
| `hangup` | 无 | 挂断通话 |
|
|
268
|
+
| `setVideoProfile` | `profile: string` | 设置视频分辨率(支持360p、720p、1080p、1440p) |
|
|
267
269
|
|
|
268
270
|
### 组件事件
|
|
269
271
|
|