Skip to content

Commit

Permalink
Fix VideoStreamPlayer seamless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kinami-imai committed Jun 5, 2023
1 parent 543750a commit 270bc93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/gui/video_stream_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 270bc93

Please sign in to comment.