Fix: video playback pauses on end of song
This commit is contained in:
parent
0dc61d12d9
commit
48fe11bf3f
@ -11,6 +11,12 @@ sceneFeatureManager.register({
|
|||||||
if (state.videoUrls && state.videoUrls.length > 0) {
|
if (state.videoUrls && state.videoUrls.length > 0) {
|
||||||
startVideoPlayback();
|
startVideoPlayback();
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onPartyEnd: () => {
|
||||||
|
if (state.videoElement && !state.videoElement.paused) {
|
||||||
|
state.videoElement.pause();
|
||||||
|
updatePlayPauseButton();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user