|
@@ -496,12 +496,20 @@ export default defineComponent({
|
|
|
activeItem.iframeRef?.handleChangeAudio('pause');
|
|
|
}
|
|
|
|
|
|
+ console.log(activeItem.type, 'activeItem.type');
|
|
|
if (activeItem.type === 'RHYTHM') {
|
|
|
activeItem.iframeRef?.contentWindow?.postMessage(
|
|
|
{ api: 'setPlayState', data: false },
|
|
|
'*'
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ if (activeItem.type === 'LISTEN') {
|
|
|
+ activeItem.iframeRef?.contentWindow?.postMessage(
|
|
|
+ { api: 'setPlayState' },
|
|
|
+ '*'
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
// 切换素材
|
|
@@ -894,7 +902,8 @@ export default defineComponent({
|
|
|
handlePreAndNext('down');
|
|
|
} else if (e.code === 'Space') {
|
|
|
// const activeItem = data.itemList[popupData.activeIndex];
|
|
|
- // // // 暂停视频和曲谱的播放
|
|
|
+ // console.log(activeItem, activeItem.videoEle);
|
|
|
+ // // 暂停视频和曲谱的播放
|
|
|
// if (activeItem.type === 'VIDEO' && activeItem.videoEle) {
|
|
|
// activeItem.videoEle?.play();
|
|
|
// }
|