mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Sync with current master branch (42c7f14)
This commit is contained in:
@@ -55,6 +55,8 @@ Properties
|
||||
+---------------------------------------+--------------------------------------------------------------------------+---------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`paused<class_VideoStreamPlayer_property_paused>` | ``false`` |
|
||||
+---------------------------------------+--------------------------------------------------------------------------+---------------+
|
||||
| :ref:`float<class_float>` | :ref:`speed_scale<class_VideoStreamPlayer_property_speed_scale>` | ``1.0`` |
|
||||
+---------------------------------------+--------------------------------------------------------------------------+---------------+
|
||||
| :ref:`VideoStream<class_VideoStream>` | :ref:`stream<class_VideoStreamPlayer_property_stream>` | |
|
||||
+---------------------------------------+--------------------------------------------------------------------------+---------------+
|
||||
| :ref:`float<class_float>` | :ref:`stream_position<class_VideoStreamPlayer_property_stream_position>` | |
|
||||
@@ -231,6 +233,23 @@ If ``true``, the video is paused.
|
||||
|
||||
----
|
||||
|
||||
.. _class_VideoStreamPlayer_property_speed_scale:
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`float<class_float>` **speed_scale** = ``1.0`` :ref:`🔗<class_VideoStreamPlayer_property_speed_scale>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- |void| **set_speed_scale**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_speed_scale**\ (\ )
|
||||
|
||||
The stream's current speed scale. ``1.0`` is the normal speed, while ``2.0`` is double speed and ``0.5`` is half speed. A speed scale of ``0.0`` pauses the video, similar to setting :ref:`paused<class_VideoStreamPlayer_property_paused>` to ``true``.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_VideoStreamPlayer_property_stream:
|
||||
|
||||
.. rst-class:: classref-property
|
||||
@@ -377,6 +396,7 @@ Stops the video playback and sets the stream position to 0.
|
||||
\ **Note:** Although the stream position will be set to 0, the first frame of the video stream won't become the current frame.
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
||||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||||
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
||||
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|
||||
.. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
|
||||
|
||||
Reference in New Issue
Block a user