Merge pull request #77858 from kinami-imai/expose_videostreamplayer_video_length

Expose VideoStreamPlayer video length
This commit is contained in:
Yuri Sizov
2023-07-12 17:14:44 +02:00
3 changed files with 16 additions and 0 deletions

View File

@@ -12,6 +12,13 @@
<tutorials>
</tutorials>
<methods>
<method name="get_stream_length" qualifiers="const">
<return type="float" />
<description>
The length of the current stream, in seconds.
[b]Note:[/b] For [VideoStreamTheora] streams (the built-in format supported by Godot), this value will always be zero, as getting the stream length is not implemented yet. The feature may be supported by video formats implemented by a GDExtension add-on.
</description>
</method>
<method name="get_stream_name" qualifiers="const">
<return type="String" />
<description>