class_videostream.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/doc/classes/VideoStream.xml.
  6. .. _class_VideoStream:
  7. VideoStream
  8. ===========
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`VideoStreamTheora<class_VideoStreamTheora>`
  11. Base resource for video streams.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Base resource type for all video streams. Classes that derive from **VideoStream** can all be used as resource types to play back videos in :ref:`VideoStreamPlayer<class_VideoStreamPlayer>`.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-----------------------------+----------------------------------------------+--------+
  22. | :ref:`String<class_String>` | :ref:`file<class_VideoStream_property_file>` | ``""`` |
  23. +-----------------------------+----------------------------------------------+--------+
  24. .. rst-class:: classref-reftable-group
  25. Methods
  26. -------
  27. .. table::
  28. :widths: auto
  29. +-------------------------------------------------------+----------------------------------------------------------------------------------------------------+
  30. | :ref:`VideoStreamPlayback<class_VideoStreamPlayback>` | :ref:`_instantiate_playback<class_VideoStream_method__instantiate_playback>` **(** **)** |virtual| |
  31. +-------------------------------------------------------+----------------------------------------------------------------------------------------------------+
  32. .. rst-class:: classref-section-separator
  33. ----
  34. .. rst-class:: classref-descriptions-group
  35. Property Descriptions
  36. ---------------------
  37. .. _class_VideoStream_property_file:
  38. .. rst-class:: classref-property
  39. :ref:`String<class_String>` **file** = ``""``
  40. .. rst-class:: classref-property-setget
  41. - void **set_file** **(** :ref:`String<class_String>` value **)**
  42. - :ref:`String<class_String>` **get_file** **(** **)**
  43. The video file path or URI that this **VideoStream** resource handles.
  44. For :ref:`VideoStreamTheora<class_VideoStreamTheora>`, this filename should be an Ogg Theora video file with the ``.ogv`` extension.
  45. .. rst-class:: classref-section-separator
  46. ----
  47. .. rst-class:: classref-descriptions-group
  48. Method Descriptions
  49. -------------------
  50. .. _class_VideoStream_method__instantiate_playback:
  51. .. rst-class:: classref-method
  52. :ref:`VideoStreamPlayback<class_VideoStreamPlayback>` **_instantiate_playback** **(** **)** |virtual|
  53. Called when the video starts playing, to initialize and return a subclass of :ref:`VideoStreamPlayback<class_VideoStreamPlayback>`.
  54. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  55. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  56. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  57. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  58. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  59. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`