pcm-agents 0.6.38 → 0.6.39
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/dist/cjs/pcm-1zhanshi-mnms-modal_29.cjs.entry.js +1 -20
- package/dist/cjs/pcm-1zhanshi-mnms-modal_29.cjs.entry.js.map +1 -1
- package/dist/collection/components/pcm-virtual-chat-modal/pcm-virtual-chat-modal.js +1 -20
- package/dist/collection/components/pcm-virtual-chat-modal/pcm-virtual-chat-modal.js.map +1 -1
- package/dist/components/{p-BkYSR-xI.js → p-D-Qi4EI6.js} +3 -22
- package/dist/components/p-D-Qi4EI6.js.map +1 -0
- package/dist/components/pcm-1zhanshi-mnms-modal.js +1 -1
- package/dist/components/pcm-mnms-modal.js +1 -1
- package/dist/components/pcm-mnms-zp-modal.js +1 -1
- package/dist/components/pcm-virtual-chat-modal.js +1 -1
- package/dist/esm/pcm-1zhanshi-mnms-modal_29.entry.js +1 -20
- package/dist/esm/pcm-1zhanshi-mnms-modal_29.entry.js.map +1 -1
- package/dist/pcm-agents/{p-a795231b.entry.js → p-dd3aadfd.entry.js} +10 -10
- package/dist/pcm-agents/{p-a795231b.entry.js.map → p-dd3aadfd.entry.js.map} +1 -1
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-BkYSR-xI.js.map +0 -1
|
@@ -16086,14 +16086,6 @@ const ChatVirtualAPPModal = class {
|
|
|
16086
16086
|
if (placeholder_video_url && placeholder_video_url !== selectedOpeningContent.video_url) {
|
|
16087
16087
|
orderedVideosToPreload.push(placeholder_video_url);
|
|
16088
16088
|
}
|
|
16089
|
-
console.log('数字人初始化完成:', {
|
|
16090
|
-
defaultVideoUrl: this.digitalHumanDefaultVideoUrl,
|
|
16091
|
-
virtualmanKey: this.virtualmanKey,
|
|
16092
|
-
openingContents: this.digitalHumanOpeningContents,
|
|
16093
|
-
selectedOpeningIndex: validIndex,
|
|
16094
|
-
selectedOpeningContent,
|
|
16095
|
-
orderedVideosToPreload
|
|
16096
|
-
});
|
|
16097
16089
|
// 使用顺序预加载
|
|
16098
16090
|
this.handleVideoUrlReceivedSequential(orderedVideosToPreload, '数字人初始化(顺序)');
|
|
16099
16091
|
// 播放选择的欢迎视频 - 检查是否已经在继续对话模式下设置了状态
|
|
@@ -16125,7 +16117,7 @@ const ChatVirtualAPPModal = class {
|
|
|
16125
16117
|
async generateDigitalHumanVideo(text) {
|
|
16126
16118
|
// 如果组件已停用,直接跳过生成视频
|
|
16127
16119
|
if (!this.isComponentActive) {
|
|
16128
|
-
|
|
16120
|
+
console.warn('组件已停用,跳过数字人视频生成');
|
|
16129
16121
|
return;
|
|
16130
16122
|
}
|
|
16131
16123
|
if (!text.trim() || !this.virtualmanKey) {
|
|
@@ -16244,12 +16236,6 @@ const ChatVirtualAPPModal = class {
|
|
|
16244
16236
|
this.isPlayingDigitalHumanVideo = true;
|
|
16245
16237
|
this.digitalHumanVideoReady = true;
|
|
16246
16238
|
this.isPlayingWelcomeVideo = isWelcomeVideo;
|
|
16247
|
-
console.log('数字人视频状态已更新:', {
|
|
16248
|
-
videoUrl: this.digitalHumanVideoUrl,
|
|
16249
|
-
isPlaying: this.isPlayingDigitalHumanVideo,
|
|
16250
|
-
muted: !this.isPlayingDigitalHumanVideo,
|
|
16251
|
-
isWelcomeVideo: this.isPlayingWelcomeVideo
|
|
16252
|
-
});
|
|
16253
16239
|
}
|
|
16254
16240
|
catch (error) {
|
|
16255
16241
|
console.error('播放数字人视频失败:', error);
|
|
@@ -16409,11 +16395,6 @@ const ChatVirtualAPPModal = class {
|
|
|
16409
16395
|
this.isPlayingDigitalHumanVideo = false;
|
|
16410
16396
|
const wasWelcomeVideo = this.isPlayingWelcomeVideo;
|
|
16411
16397
|
this.isPlayingWelcomeVideo = false;
|
|
16412
|
-
console.log('恢复默认视频状态:', {
|
|
16413
|
-
videoUrl: this.digitalHumanVideoUrl,
|
|
16414
|
-
isPlaying: this.isPlayingDigitalHumanVideo,
|
|
16415
|
-
muted: !this.isPlayingDigitalHumanVideo
|
|
16416
|
-
});
|
|
16417
16398
|
// 只有非欢迎视频播放完成后,才开始录制流程
|
|
16418
16399
|
if (this.waitingForDigitalHuman && !this.isTaskCompleted && !wasWelcomeVideo) {
|
|
16419
16400
|
this.waitingForDigitalHuman = false;
|