Skip to content

Expose VideoStreamPlayer video length - #77858

Merged
YuriSizov merged 1 commit into
godotengine:masterfrom
kinami-imai:expose_videostreamplayer_video_length
Jul 12, 2023
Merged

YuriSizov merged 1 commit into
godotengine:masterfrom
kinami-imai:expose_videostreamplayer_video_length

Conversation

@kinami-imai

Copy link
Copy Markdown
Contributor

Part of a group of three PRs (#77856 #77857 #77858) that solve godotengine/godot-proposals#264.

Currently, there is no way to determine the length of the video file being played in a VideoStreamPlayer. This PR exposes the get_length function of the VideoStreamPlayback to the VideoStreamPlayer in the editor. Right now this function returns 0 on Theora streams, however, GDExtension based VideoStreams may implement it.

In the future I might implement getting the length of Theora streams in a separate PR.

Comment thread doc/classes/VideoStreamPlayer.xml Outdated
@kinami-imai
kinami-imai force-pushed the expose_videostreamplayer_video_length branch from a7335ec to e3da917 Compare June 5, 2023 19:30
@kinami-imai

Copy link
Copy Markdown
Contributor Author

Force pushed changes by @akien-mga to keep git history clean 🙂

@YuriSizov YuriSizov modified the milestones: 4.x, 4.2 Jun 6, 2023
@YuriSizov
YuriSizov merged commit 1978b7c into godotengine:master Jul 12, 2023
@YuriSizov

Copy link
Copy Markdown
Contributor

Thanks!

BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
…eamplayer_video_length

Expose VideoStreamPlayer video length
BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
…eamplayer_video_length

Expose VideoStreamPlayer video length
wangshucheng pushed a commit to wangshucheng/godot that referenced this pull request Aug 27, 2026
…eamplayer_video_length

Expose VideoStreamPlayer video length
Shane-Gadsby pushed a commit to Shane-Gadsby/godotwebgpu that referenced this pull request Sep 21, 2026
…eamplayer_video_length

Expose VideoStreamPlayer video length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants