Skip to content

Commit 1ea4111

Browse files
authored
Merge pull request godotengine#8088 from kinami-imai/patch-1
Document looping support
2 parents 40aa2a7 + acf453a commit 1ea4111

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tutorials/animation/playing_videos.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ See :ref:`doc_viewports` and the
116116
`GUI in 3D demo <https://github.com/godotengine/godot-demo-projects/tree/master/viewport/gui_in_3d>`__
117117
for more information on setting this up.
118118

119+
Looping a video
120+
^^^^^^^^^^^^^^^
121+
122+
For looping a video, the **Loop** property can be enabled. This will seamlessly
123+
restart the video when it reaches its end.
124+
125+
Note that setting the project setting **Video Delay Compensation** to a non-zero
126+
value might cause your loop to not be seamless, because the synchronization of
127+
audio and video takes place at the start of each loop causing occasional missed
128+
frames. Set **Video Delay Compensation** in your project settings to **0** to
129+
avoid frame drop issues.
130+
119131
Video decoding conditions and recommended resolutions
120132
-----------------------------------------------------
121133

@@ -143,9 +155,6 @@ There are several limitations with the current implementation of video playback
143155
- Seeking a video to a certain point is not supported.
144156
- Changing playback speed is not supported. VideoStreamPlayer also won't follow
145157
:ref:`Engine.time_scale<class_Engine_property_time_scale>`.
146-
- Looping is not supported, but you can connect a VideoStreamPlayer's
147-
:ref:`finished <class_VideoStreamPlayer_signal_finished>` signal to a function
148-
that plays the video again.
149158
- Streaming a video from a URL is not supported.
150159

151160
.. _doc_playing_videos_recommended_theora_encoding_settings:

0 commit comments

Comments
 (0)