From acf453aa98a3275d21c92c6fb454ee59fa8f46d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=8A=E4=BA=95=E3=81=8D=E3=81=AA=E3=81=BF?= <129700584+kinami-imai@users.noreply.github.com> Date: Thu, 28 Sep 2023 23:07:45 +0000 Subject: [PATCH] Document looping support Since https://github.com/godotengine/godot/pull/77857 is merged and will be released in 4.2, it would be great to update the documentation. --- tutorials/animation/playing_videos.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tutorials/animation/playing_videos.rst b/tutorials/animation/playing_videos.rst index 5122f9ca9f6..da6b14b5eb3 100644 --- a/tutorials/animation/playing_videos.rst +++ b/tutorials/animation/playing_videos.rst @@ -116,6 +116,18 @@ See :ref:`doc_viewports` and the `GUI in 3D demo `__ for more information on setting this up. +Looping a video +^^^^^^^^^^^^^^^ + +For looping a video, the **Loop** property can be enabled. This will seamlessly +restart the video when it reaches its end. + +Note that setting the project setting **Video Delay Compensation** to a non-zero +value might cause your loop to not be seamless, because the synchronization of +audio and video takes place at the start of each loop causing occasional missed +frames. Set **Video Delay Compensation** in your project settings to **0** to +avoid frame drop issues. + Video decoding conditions and recommended resolutions ----------------------------------------------------- @@ -143,9 +155,6 @@ There are several limitations with the current implementation of video playback - Seeking a video to a certain point is not supported. - Changing playback speed is not supported. VideoStreamPlayer also won't follow :ref:`Engine.time_scale`. -- Looping is not supported, but you can connect a VideoStreamPlayer's - :ref:`finished ` signal to a function - that plays the video again. - Streaming a video from a URL is not supported. .. _doc_playing_videos_recommended_theora_encoding_settings: