-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
VideoStreamPlayer has Expand enabled by default, causing it to be sized at 0×0 by default (therefore being invisible) #36647
Comments
I can hear sound but the video does not work. |
I don’t think that this issue is still valid. See: |
@Jayman2000 Theora is still supported in |
This is because the VideoStreamPlayer node has a rect size of 0×0, causing it to be invisible. Disable the Expand property on the VideoStreamPlayer node, or set the Layout to Full Rect (will cause aspect ratio distortion unless the video's aspect ratio matches).1 The same applies to @lszl84's minimal reproduction project. I suggest fixing this by disabling the Expand property by default on VideoStreamPlayer in 4.0, but we can't do this in 3.x to avoid breaking compatibility with existing projects. It may also be worth adding similar scaling options as TextureRect: Additionally, we can add a node configuration warning if a Control node's rect size is 0 pixels on either the X or Y axis (which will make it invisible). This is something we can also add to 3.x. Footnotes
|
Godot version: master (947a663)
OS/device including version: mac OS 10.15.3
Issue description: Video does not play in Godot 4. Works in Godot 3.
Steps to reproduce: Open attached project in Godot 3.2. Run it and verify that the video is playing. Close the project and open it in Godot 4. No video is being played when running the project.
Minimal reproduction project:
godot3vid-3.zip
The text was updated successfully, but these errors were encountered: