Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/webgal/src/Core/gameScripts/playVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ export const playVideo = (sentence: ISentence): IPerform => {
if (VocalControl !== null) {
VocalControl.currentTime = 0;
VocalControl.volume = bgmVol;
// 双击可跳过视频
WebGAL.events.fullscreenDbClick.on(skipVideo);
/**
* 把bgm和语音的音量设为0
*/
Expand All @@ -78,6 +76,9 @@ export const playVideo = (sentence: ISentence): IPerform => {
}

VocalControl?.play().catch(() => {});
if (!blockingNextFlag) {
WebGAL.events.fullscreenDbClick.on(skipVideo);
}

VocalControl.onended = () => {
endPerform();
Expand Down
Loading