Merge pull request #62755 from Calinou/videostreamplayer-default-disable-expand

Disable Expand by default in VideoStreamPlayer
This commit is contained in:
Rémi Verschelde 2022-07-06 07:59:33 +02:00 committed by GitHub
commit 08e8e6739e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@
<member name="bus" type="StringName" setter="set_bus" getter="get_bus" default="&amp;&quot;Master&quot;">
Audio bus to use for sound playback.
</member>
<member name="expand" type="bool" setter="set_expand" getter="has_expand" default="true">
<member name="expand" type="bool" setter="set_expand" getter="has_expand" default="false">
If [code]true[/code], the video scales to the control size. Otherwise, the control minimum size will be automatically adjusted to match the video stream's dimensions.
</member>
<member name="paused" type="bool" setter="set_paused" getter="is_paused" default="false">

View File

@ -64,7 +64,7 @@ class VideoStreamPlayer : public Control {
bool autoplay = false;
float volume = 1.0;
double last_audio_time = 0.0;
bool expand = true;
bool expand = false;
bool loops = false;
int buffering_ms = 500;
int audio_track = 0;