How do i make a videostramplayer adjust to screen size?

Godot Version



With Textures you have the option to make it adjust automatically to the screen size. but how do i do this for a videostream player since it doesn’t have these option.
I created a canvas layer and put a videostreamplayer in it but regadles on what mode I set it in, its always ginormous so that you can only see the center of the video. but i am stuck with how to adjust it. Like it is a 16:9 Video, and the game window is also 16:9, so how can i make it scale according to the window size?

Use an AspectRatioContainer as its parent with the correct aspect ratio set and enable VideoStreamPlayer.expand


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.