@tencentcloud/roomkit-electron-vue3 2.6.2 → 2.6.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/es/components/common/AudioSettingTab.vue.mjs +1 -1
- package/es/components/common/AudioSettingTab.vue2.mjs +3 -1
- package/es/index.mjs +12 -12
- package/es/package.json.mjs +3 -3
- package/es/services/function/aiTask.mjs +7 -4
- package/lib/components/common/AudioSettingTab.vue.js +1 -1
- package/lib/components/common/AudioSettingTab.vue2.js +3 -1
- package/lib/index.js +12 -12
- package/lib/package.json.js +3 -3
- package/lib/services/function/aiTask.js +6 -3
- package/package.json +3 -3
- package/src/TUIRoom/components/common/AudioSettingTab.vue +3 -1
- package/src/TUIRoom/services/function/aiTask.ts +10 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./AudioSettingTab.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const AudioSettingTab = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const AudioSettingTab = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4e811209"]]);
|
|
5
5
|
export {
|
|
6
6
|
AudioSettingTab as default
|
|
7
7
|
};
|
|
@@ -56,7 +56,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
}
|
|
57
57
|
const isTestingSpeaker = ref(false);
|
|
58
58
|
const audioPlayer = document == null ? void 0 : document.createElement("audio");
|
|
59
|
-
audioPlayer.loop
|
|
59
|
+
if (audioPlayer && typeof audioPlayer.loop !== "undefined") {
|
|
60
|
+
audioPlayer.loop = true;
|
|
61
|
+
}
|
|
60
62
|
const { t } = useI18n();
|
|
61
63
|
async function handleSpeakerTest() {
|
|
62
64
|
const SPEAKER_TEST_URL = "https://web.sdk.qcloud.com/trtc/electron/download/resources/media/TestSpeaker.mp3";
|
package/es/index.mjs
CHANGED
|
@@ -979,30 +979,30 @@
|
|
|
979
979
|
}.select[data-v-86b2cd04] {
|
|
980
980
|
width: 100%;
|
|
981
981
|
font-size: 14px;
|
|
982
|
-
}.audio-setting-tab[data-v-
|
|
982
|
+
}.audio-setting-tab[data-v-4e811209] {
|
|
983
983
|
width: 100%;
|
|
984
984
|
font-size: 14px;
|
|
985
985
|
border-radius: 4px;
|
|
986
986
|
}
|
|
987
|
-
.audio-setting-tab .item-setting[data-v-
|
|
987
|
+
.audio-setting-tab .item-setting[data-v-4e811209] {
|
|
988
988
|
width: 100%;
|
|
989
989
|
}
|
|
990
|
-
.audio-setting-tab .item-setting[data-v-
|
|
990
|
+
.audio-setting-tab .item-setting[data-v-4e811209]:not(:last-child) {
|
|
991
991
|
margin-bottom: 20px;
|
|
992
992
|
}
|
|
993
|
-
.audio-setting-tab .flex[data-v-
|
|
993
|
+
.audio-setting-tab .flex[data-v-4e811209] {
|
|
994
994
|
display: flex;
|
|
995
995
|
width: 100%;
|
|
996
996
|
}
|
|
997
|
-
.audio-setting-tab .select[data-v-
|
|
997
|
+
.audio-setting-tab .select[data-v-4e811209] {
|
|
998
998
|
flex: 1;
|
|
999
999
|
}
|
|
1000
|
-
.audio-setting-tab .button[data-v-
|
|
1000
|
+
.audio-setting-tab .button[data-v-4e811209] {
|
|
1001
1001
|
width: 74px;
|
|
1002
1002
|
padding: 5px 23px;
|
|
1003
1003
|
margin-left: 10px;
|
|
1004
1004
|
}
|
|
1005
|
-
.audio-setting-tab .title[data-v-
|
|
1005
|
+
.audio-setting-tab .title[data-v-4e811209] {
|
|
1006
1006
|
display: inline-block;
|
|
1007
1007
|
width: 100%;
|
|
1008
1008
|
margin-bottom: 8px;
|
|
@@ -1011,24 +1011,24 @@
|
|
|
1011
1011
|
line-height: 22px;
|
|
1012
1012
|
color: #4f586b;
|
|
1013
1013
|
}
|
|
1014
|
-
.audio-setting-tab .mic-bar-container[data-v-
|
|
1014
|
+
.audio-setting-tab .mic-bar-container[data-v-4e811209] {
|
|
1015
1015
|
display: flex;
|
|
1016
1016
|
justify-content: space-between;
|
|
1017
1017
|
}
|
|
1018
|
-
.audio-setting-tab .mic-bar-container .mic-bar[data-v-
|
|
1018
|
+
.audio-setting-tab .mic-bar-container .mic-bar[data-v-4e811209] {
|
|
1019
1019
|
width: 3px;
|
|
1020
1020
|
height: 6px;
|
|
1021
1021
|
background-color: var(--background-color-4);
|
|
1022
1022
|
}
|
|
1023
|
-
.audio-setting-tab .mic-bar-container .mic-bar.active[data-v-
|
|
1023
|
+
.audio-setting-tab .mic-bar-container .mic-bar.active[data-v-4e811209] {
|
|
1024
1024
|
background-color: var(--green-color);
|
|
1025
1025
|
}
|
|
1026
|
-
.audio-setting-tab .audio-level-container[data-v-
|
|
1026
|
+
.audio-setting-tab .audio-level-container[data-v-4e811209] {
|
|
1027
1027
|
display: flex;
|
|
1028
1028
|
width: 100%;
|
|
1029
1029
|
height: 20px;
|
|
1030
1030
|
}
|
|
1031
|
-
.audio-setting-tab .audio-level-container .slider[data-v-
|
|
1031
|
+
.audio-setting-tab .audio-level-container .slider[data-v-4e811209] {
|
|
1032
1032
|
height: 20px;
|
|
1033
1033
|
margin-left: 10px;
|
|
1034
1034
|
}.audio-icon-container[data-v-6e9fcb9f] {
|
package/es/package.json.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@tencentcloud/roomkit-electron-vue3";
|
|
2
|
-
const version = "2.6.
|
|
2
|
+
const version = "2.6.3";
|
|
3
3
|
const main = "./lib/index.js";
|
|
4
4
|
const module = "./es/index.mjs";
|
|
5
5
|
const types = "./es/index.d.ts";
|
|
@@ -21,10 +21,9 @@ const scripts = {
|
|
|
21
21
|
build: "vite build"
|
|
22
22
|
};
|
|
23
23
|
const dependencies = {
|
|
24
|
-
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
25
24
|
"@tencentcloud/chat": "latest",
|
|
26
25
|
"@tencentcloud/tui-core": "latest",
|
|
27
|
-
"@tencentcloud/tuiroom-engine-electron": "workspace:^2.6.
|
|
26
|
+
"@tencentcloud/tuiroom-engine-electron": "workspace:^2.6.3",
|
|
28
27
|
"@tencentcloud/chat-uikit-engine": "2.2.7",
|
|
29
28
|
"@tencentcloud/chat-uikit-vue": "2.2.7",
|
|
30
29
|
"@tencentcloud/universal-api": "^2.0.9",
|
|
@@ -49,6 +48,7 @@ const peerDependencies = {
|
|
|
49
48
|
electron: ">=4.0.0"
|
|
50
49
|
};
|
|
51
50
|
const devDependencies = {
|
|
51
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
52
52
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
53
53
|
sass: "^1.72.0",
|
|
54
54
|
typescript: "^5.2.2",
|
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import mitt from "mitt";
|
|
5
|
-
import { isElectron } from "../../utils/environment.mjs";
|
|
5
|
+
import { isElectron, isMobile } from "../../utils/environment.mjs";
|
|
6
6
|
var AI_TASK = /* @__PURE__ */ ((AI_TASK2) => {
|
|
7
7
|
AI_TASK2["TRANSCRIPTION_TASK"] = "transcription";
|
|
8
8
|
return AI_TASK2;
|
|
@@ -16,7 +16,7 @@ class AITask {
|
|
|
16
16
|
__publicField(this, "subtitleText", { value: "" });
|
|
17
17
|
__publicField(this, "transcriptionText", { value: "" });
|
|
18
18
|
this.service = service;
|
|
19
|
-
if (isElectron) return;
|
|
19
|
+
if (isElectron || isMobile) return;
|
|
20
20
|
this.bindCtx();
|
|
21
21
|
this.bindEvent();
|
|
22
22
|
}
|
|
@@ -39,8 +39,11 @@ class AITask {
|
|
|
39
39
|
this.service.lifeCycleManager.off("unmount", this.handleUnmount);
|
|
40
40
|
}
|
|
41
41
|
handleMount() {
|
|
42
|
-
var _a;
|
|
43
|
-
|
|
42
|
+
var _a, _b, _c, _d;
|
|
43
|
+
if (typeof ((_a = this.service.roomEngine.instance) == null ? void 0 : _a.getTRTCCloud) === "undefined" || typeof ((_c = (_b = this.service.roomEngine.instance) == null ? void 0 : _b.getTRTCCloud()) == null ? void 0 : _c._trtc) === "undefined") {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const trtc = (_d = this.service.roomEngine.instance) == null ? void 0 : _d.getTRTCCloud()._trtc;
|
|
44
47
|
this.trtc = trtc;
|
|
45
48
|
trtc.on("custom-message", this.handleAIMessage);
|
|
46
49
|
}
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const AudioSettingTab_vue_vue_type_script_setup_true_lang = require("./AudioSettingTab.vue2.js");
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const AudioSettingTab = /* @__PURE__ */ _pluginVue_exportHelper.default(AudioSettingTab_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const AudioSettingTab = /* @__PURE__ */ _pluginVue_exportHelper.default(AudioSettingTab_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-4e811209"]]);
|
|
7
7
|
exports.default = AudioSettingTab;
|
|
@@ -58,7 +58,9 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
58
58
|
}
|
|
59
59
|
const isTestingSpeaker = Vue.ref(false);
|
|
60
60
|
const audioPlayer = document == null ? void 0 : document.createElement("audio");
|
|
61
|
-
audioPlayer.loop
|
|
61
|
+
if (audioPlayer && typeof audioPlayer.loop !== "undefined") {
|
|
62
|
+
audioPlayer.loop = true;
|
|
63
|
+
}
|
|
62
64
|
const { t } = index.useI18n();
|
|
63
65
|
async function handleSpeakerTest() {
|
|
64
66
|
const SPEAKER_TEST_URL = "https://web.sdk.qcloud.com/trtc/electron/download/resources/media/TestSpeaker.mp3";
|
package/lib/index.js
CHANGED
|
@@ -979,30 +979,30 @@
|
|
|
979
979
|
}.select[data-v-86b2cd04] {
|
|
980
980
|
width: 100%;
|
|
981
981
|
font-size: 14px;
|
|
982
|
-
}.audio-setting-tab[data-v-
|
|
982
|
+
}.audio-setting-tab[data-v-4e811209] {
|
|
983
983
|
width: 100%;
|
|
984
984
|
font-size: 14px;
|
|
985
985
|
border-radius: 4px;
|
|
986
986
|
}
|
|
987
|
-
.audio-setting-tab .item-setting[data-v-
|
|
987
|
+
.audio-setting-tab .item-setting[data-v-4e811209] {
|
|
988
988
|
width: 100%;
|
|
989
989
|
}
|
|
990
|
-
.audio-setting-tab .item-setting[data-v-
|
|
990
|
+
.audio-setting-tab .item-setting[data-v-4e811209]:not(:last-child) {
|
|
991
991
|
margin-bottom: 20px;
|
|
992
992
|
}
|
|
993
|
-
.audio-setting-tab .flex[data-v-
|
|
993
|
+
.audio-setting-tab .flex[data-v-4e811209] {
|
|
994
994
|
display: flex;
|
|
995
995
|
width: 100%;
|
|
996
996
|
}
|
|
997
|
-
.audio-setting-tab .select[data-v-
|
|
997
|
+
.audio-setting-tab .select[data-v-4e811209] {
|
|
998
998
|
flex: 1;
|
|
999
999
|
}
|
|
1000
|
-
.audio-setting-tab .button[data-v-
|
|
1000
|
+
.audio-setting-tab .button[data-v-4e811209] {
|
|
1001
1001
|
width: 74px;
|
|
1002
1002
|
padding: 5px 23px;
|
|
1003
1003
|
margin-left: 10px;
|
|
1004
1004
|
}
|
|
1005
|
-
.audio-setting-tab .title[data-v-
|
|
1005
|
+
.audio-setting-tab .title[data-v-4e811209] {
|
|
1006
1006
|
display: inline-block;
|
|
1007
1007
|
width: 100%;
|
|
1008
1008
|
margin-bottom: 8px;
|
|
@@ -1011,24 +1011,24 @@
|
|
|
1011
1011
|
line-height: 22px;
|
|
1012
1012
|
color: #4f586b;
|
|
1013
1013
|
}
|
|
1014
|
-
.audio-setting-tab .mic-bar-container[data-v-
|
|
1014
|
+
.audio-setting-tab .mic-bar-container[data-v-4e811209] {
|
|
1015
1015
|
display: flex;
|
|
1016
1016
|
justify-content: space-between;
|
|
1017
1017
|
}
|
|
1018
|
-
.audio-setting-tab .mic-bar-container .mic-bar[data-v-
|
|
1018
|
+
.audio-setting-tab .mic-bar-container .mic-bar[data-v-4e811209] {
|
|
1019
1019
|
width: 3px;
|
|
1020
1020
|
height: 6px;
|
|
1021
1021
|
background-color: var(--background-color-4);
|
|
1022
1022
|
}
|
|
1023
|
-
.audio-setting-tab .mic-bar-container .mic-bar.active[data-v-
|
|
1023
|
+
.audio-setting-tab .mic-bar-container .mic-bar.active[data-v-4e811209] {
|
|
1024
1024
|
background-color: var(--green-color);
|
|
1025
1025
|
}
|
|
1026
|
-
.audio-setting-tab .audio-level-container[data-v-
|
|
1026
|
+
.audio-setting-tab .audio-level-container[data-v-4e811209] {
|
|
1027
1027
|
display: flex;
|
|
1028
1028
|
width: 100%;
|
|
1029
1029
|
height: 20px;
|
|
1030
1030
|
}
|
|
1031
|
-
.audio-setting-tab .audio-level-container .slider[data-v-
|
|
1031
|
+
.audio-setting-tab .audio-level-container .slider[data-v-4e811209] {
|
|
1032
1032
|
height: 20px;
|
|
1033
1033
|
margin-left: 10px;
|
|
1034
1034
|
}.audio-icon-container[data-v-6e9fcb9f] {
|
package/lib/package.json.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const name = "@tencentcloud/roomkit-electron-vue3";
|
|
4
|
-
const version = "2.6.
|
|
4
|
+
const version = "2.6.3";
|
|
5
5
|
const main = "./lib/index.js";
|
|
6
6
|
const module$1 = "./es/index.mjs";
|
|
7
7
|
const types = "./es/index.d.ts";
|
|
@@ -23,10 +23,9 @@ const scripts = {
|
|
|
23
23
|
build: "vite build"
|
|
24
24
|
};
|
|
25
25
|
const dependencies = {
|
|
26
|
-
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
27
26
|
"@tencentcloud/chat": "latest",
|
|
28
27
|
"@tencentcloud/tui-core": "latest",
|
|
29
|
-
"@tencentcloud/tuiroom-engine-electron": "workspace:^2.6.
|
|
28
|
+
"@tencentcloud/tuiroom-engine-electron": "workspace:^2.6.3",
|
|
30
29
|
"@tencentcloud/chat-uikit-engine": "2.2.7",
|
|
31
30
|
"@tencentcloud/chat-uikit-vue": "2.2.7",
|
|
32
31
|
"@tencentcloud/universal-api": "^2.0.9",
|
|
@@ -51,6 +50,7 @@ const peerDependencies = {
|
|
|
51
50
|
electron: ">=4.0.0"
|
|
52
51
|
};
|
|
53
52
|
const devDependencies = {
|
|
53
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
54
54
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
55
55
|
sass: "^1.72.0",
|
|
56
56
|
typescript: "^5.2.2",
|
|
@@ -18,7 +18,7 @@ class AITask {
|
|
|
18
18
|
__publicField(this, "subtitleText", { value: "" });
|
|
19
19
|
__publicField(this, "transcriptionText", { value: "" });
|
|
20
20
|
this.service = service;
|
|
21
|
-
if (environment.isElectron) return;
|
|
21
|
+
if (environment.isElectron || environment.isMobile) return;
|
|
22
22
|
this.bindCtx();
|
|
23
23
|
this.bindEvent();
|
|
24
24
|
}
|
|
@@ -41,8 +41,11 @@ class AITask {
|
|
|
41
41
|
this.service.lifeCycleManager.off("unmount", this.handleUnmount);
|
|
42
42
|
}
|
|
43
43
|
handleMount() {
|
|
44
|
-
var _a;
|
|
45
|
-
|
|
44
|
+
var _a, _b, _c, _d;
|
|
45
|
+
if (typeof ((_a = this.service.roomEngine.instance) == null ? void 0 : _a.getTRTCCloud) === "undefined" || typeof ((_c = (_b = this.service.roomEngine.instance) == null ? void 0 : _b.getTRTCCloud()) == null ? void 0 : _c._trtc) === "undefined") {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const trtc = (_d = this.service.roomEngine.instance) == null ? void 0 : _d.getTRTCCloud()._trtc;
|
|
46
49
|
this.trtc = trtc;
|
|
47
50
|
trtc.on("custom-message", this.handleAIMessage);
|
|
48
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencentcloud/roomkit-electron-vue3",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.mjs",
|
|
6
6
|
"types": "./es/index.d.ts",
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
"javascript"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
22
21
|
"@tencentcloud/chat": "latest",
|
|
23
22
|
"@tencentcloud/tui-core": "latest",
|
|
24
|
-
"@tencentcloud/tuiroom-engine-electron": "^2.6.
|
|
23
|
+
"@tencentcloud/tuiroom-engine-electron": "^2.6.3",
|
|
25
24
|
"@tencentcloud/chat-uikit-engine": "2.2.7",
|
|
26
25
|
"@tencentcloud/chat-uikit-vue": "2.2.7",
|
|
27
26
|
"@tencentcloud/universal-api": "^2.0.9",
|
|
@@ -46,6 +45,7 @@
|
|
|
46
45
|
"electron": ">=4.0.0"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
48
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
49
49
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
50
50
|
"sass": "^1.72.0",
|
|
51
51
|
"typescript": "^5.2.2",
|
|
@@ -110,7 +110,9 @@ function handleMicrophoneTest() {
|
|
|
110
110
|
|
|
111
111
|
const isTestingSpeaker = ref(false);
|
|
112
112
|
const audioPlayer = document?.createElement('audio');
|
|
113
|
-
audioPlayer.loop
|
|
113
|
+
if (audioPlayer && typeof audioPlayer.loop !== 'undefined') {
|
|
114
|
+
audioPlayer.loop = true;
|
|
115
|
+
}
|
|
114
116
|
const { t } = useI18n();
|
|
115
117
|
|
|
116
118
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IRoomService } from '../';
|
|
2
2
|
import mitt from 'mitt';
|
|
3
|
-
import { isElectron } from '../../utils/environment';
|
|
3
|
+
import { isElectron, isMobile } from '../../utils/environment';
|
|
4
4
|
|
|
5
5
|
interface SubtitleMessage {
|
|
6
6
|
userid: string;
|
|
@@ -53,7 +53,7 @@ export class AITask {
|
|
|
53
53
|
|
|
54
54
|
constructor(service: IRoomService) {
|
|
55
55
|
this.service = service;
|
|
56
|
-
if (isElectron) return;
|
|
56
|
+
if (isElectron || isMobile) return;
|
|
57
57
|
this.bindCtx();
|
|
58
58
|
this.bindEvent();
|
|
59
59
|
}
|
|
@@ -88,6 +88,14 @@ export class AITask {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
private handleMount() {
|
|
91
|
+
// todo trtccloud adds custom-message event
|
|
92
|
+
if (
|
|
93
|
+
typeof this.service.roomEngine.instance?.getTRTCCloud === 'undefined' ||
|
|
94
|
+
typeof this.service.roomEngine.instance?.getTRTCCloud()?._trtc ===
|
|
95
|
+
'undefined'
|
|
96
|
+
) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
91
99
|
const trtc = this.service.roomEngine.instance?.getTRTCCloud()._trtc;
|
|
92
100
|
this.trtc = trtc;
|
|
93
101
|
trtc.on('custom-message', this.handleAIMessage);
|