Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose VideoStreamPlayer video length #77858

Conversation

kinami-imai
Copy link
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.

@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
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
Contributor

Thanks!

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