Merge pull request #77856 from kinami-imai/videostreamplayer_seamless_loop

Fix VideoStreamPlayer seamless loop
This commit is contained in:
Yuri Sizov 2023-06-06 12:36:48 +02:00 committed by GitHub
commit b99a02387d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}