You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix VideoStreamPlayer seamless loop
This commit is contained in:
@@ -281,6 +281,9 @@ void VideoStreamPlayer::play() {
|
|||||||
set_process_internal(true);
|
set_process_internal(true);
|
||||||
last_audio_time = 0;
|
last_audio_time = 0;
|
||||||
|
|
||||||
|
// We update the playback to render the first frame immediately.
|
||||||
|
playback->update(0);
|
||||||
|
|
||||||
if (!can_process()) {
|
if (!can_process()) {
|
||||||
_notification(NOTIFICATION_PAUSED);
|
_notification(NOTIFICATION_PAUSED);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user