Fix VideoStreamPlayer seamless loop

This commit is contained in:
今井きなみ 2023-06-05 00:32:16 +02:00
parent 543750a1b3
commit 270bc93b95

View File

@ -281,6 +281,9 @@ void VideoStreamPlayer::play() {
set_process_internal(true);
last_audio_time = 0;
// We update the playback to render the first frame immediately.
playback->update(0);
if (!can_process()) {
_notification(NOTIFICATION_PAUSED);
}