Browse Source

Merge pull request #77856 from kinami-imai/videostreamplayer_seamless_loop

Fix VideoStreamPlayer seamless loop
Yuri Sizov 2 năm trước cách đây
mục cha
commit
b99a02387d
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      scene/gui/video_stream_player.cpp

+ 3 - 0
scene/gui/video_stream_player.cpp

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