class_videoplayer.rst 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_VideoPlayer:
  4. VideoPlayer
  5. ===========
  6. **Inherits:** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Member Functions
  11. ----------------
  12. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  13. | void | :ref:`set_stream<class_VideoPlayer_set_stream>` **(** :ref:`VideoStream<class_videostream>` stream **)** |
  14. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  15. | :ref:`VideoStream<class_videostream>` | :ref:`get_stream<class_VideoPlayer_get_stream>` **(** **)** const |
  16. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`play<class_VideoPlayer_play>` **(** **)** |
  18. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`stop<class_VideoPlayer_stop>` **(** **)** |
  20. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`is_playing<class_VideoPlayer_is_playing>` **(** **)** const |
  22. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`set_paused<class_VideoPlayer_set_paused>` **(** :ref:`bool<class_bool>` paused **)** |
  24. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`is_paused<class_VideoPlayer_is_paused>` **(** **)** const |
  26. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`set_volume<class_VideoPlayer_set_volume>` **(** :ref:`float<class_float>` volume **)** |
  28. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  29. | :ref:`float<class_float>` | :ref:`get_volume<class_VideoPlayer_get_volume>` **(** **)** const |
  30. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`set_volume_db<class_VideoPlayer_set_volume_db>` **(** :ref:`float<class_float>` db **)** |
  32. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  33. | :ref:`float<class_float>` | :ref:`get_volume_db<class_VideoPlayer_get_volume_db>` **(** **)** const |
  34. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`set_audio_track<class_VideoPlayer_set_audio_track>` **(** :ref:`int<class_int>` track **)** |
  36. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  37. | :ref:`int<class_int>` | :ref:`get_audio_track<class_VideoPlayer_get_audio_track>` **(** **)** const |
  38. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  39. | :ref:`String<class_string>` | :ref:`get_stream_name<class_VideoPlayer_get_stream_name>` **(** **)** const |
  40. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  41. | :ref:`float<class_float>` | :ref:`get_stream_pos<class_VideoPlayer_get_stream_pos>` **(** **)** const |
  42. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  43. | void | :ref:`set_autoplay<class_VideoPlayer_set_autoplay>` **(** :ref:`bool<class_bool>` enabled **)** |
  44. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  45. | :ref:`bool<class_bool>` | :ref:`has_autoplay<class_VideoPlayer_has_autoplay>` **(** **)** const |
  46. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  47. | void | :ref:`set_expand<class_VideoPlayer_set_expand>` **(** :ref:`bool<class_bool>` enable **)** |
  48. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  49. | :ref:`bool<class_bool>` | :ref:`has_expand<class_VideoPlayer_has_expand>` **(** **)** const |
  50. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  51. | void | :ref:`set_buffering_msec<class_VideoPlayer_set_buffering_msec>` **(** :ref:`int<class_int>` msec **)** |
  52. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  53. | :ref:`int<class_int>` | :ref:`get_buffering_msec<class_VideoPlayer_get_buffering_msec>` **(** **)** const |
  54. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  55. | :ref:`Texture<class_texture>` | :ref:`get_video_texture<class_VideoPlayer_get_video_texture>` **(** **)** |
  56. +----------------------------------------+------------------------------------------------------------------------------------------------------------+
  57. Member Function Description
  58. ---------------------------
  59. .. _class_VideoPlayer_set_stream:
  60. - void **set_stream** **(** :ref:`VideoStream<class_videostream>` stream **)**
  61. .. _class_VideoPlayer_get_stream:
  62. - :ref:`VideoStream<class_videostream>` **get_stream** **(** **)** const
  63. .. _class_VideoPlayer_play:
  64. - void **play** **(** **)**
  65. .. _class_VideoPlayer_stop:
  66. - void **stop** **(** **)**
  67. .. _class_VideoPlayer_is_playing:
  68. - :ref:`bool<class_bool>` **is_playing** **(** **)** const
  69. .. _class_VideoPlayer_set_paused:
  70. - void **set_paused** **(** :ref:`bool<class_bool>` paused **)**
  71. .. _class_VideoPlayer_is_paused:
  72. - :ref:`bool<class_bool>` **is_paused** **(** **)** const
  73. .. _class_VideoPlayer_set_volume:
  74. - void **set_volume** **(** :ref:`float<class_float>` volume **)**
  75. .. _class_VideoPlayer_get_volume:
  76. - :ref:`float<class_float>` **get_volume** **(** **)** const
  77. .. _class_VideoPlayer_set_volume_db:
  78. - void **set_volume_db** **(** :ref:`float<class_float>` db **)**
  79. .. _class_VideoPlayer_get_volume_db:
  80. - :ref:`float<class_float>` **get_volume_db** **(** **)** const
  81. .. _class_VideoPlayer_set_audio_track:
  82. - void **set_audio_track** **(** :ref:`int<class_int>` track **)**
  83. .. _class_VideoPlayer_get_audio_track:
  84. - :ref:`int<class_int>` **get_audio_track** **(** **)** const
  85. .. _class_VideoPlayer_get_stream_name:
  86. - :ref:`String<class_string>` **get_stream_name** **(** **)** const
  87. .. _class_VideoPlayer_get_stream_pos:
  88. - :ref:`float<class_float>` **get_stream_pos** **(** **)** const
  89. .. _class_VideoPlayer_set_autoplay:
  90. - void **set_autoplay** **(** :ref:`bool<class_bool>` enabled **)**
  91. .. _class_VideoPlayer_has_autoplay:
  92. - :ref:`bool<class_bool>` **has_autoplay** **(** **)** const
  93. .. _class_VideoPlayer_set_expand:
  94. - void **set_expand** **(** :ref:`bool<class_bool>` enable **)**
  95. .. _class_VideoPlayer_has_expand:
  96. - :ref:`bool<class_bool>` **has_expand** **(** **)** const
  97. .. _class_VideoPlayer_set_buffering_msec:
  98. - void **set_buffering_msec** **(** :ref:`int<class_int>` msec **)**
  99. .. _class_VideoPlayer_get_buffering_msec:
  100. - :ref:`int<class_int>` **get_buffering_msec** **(** **)** const
  101. .. _class_VideoPlayer_get_video_texture:
  102. - :ref:`Texture<class_texture>` **get_video_texture** **(** **)**