Disable Expand by default in VideoStreamPlayer
This ensures videos are always visible as soon as a video file is specified in the VideoStreamPlayer node. The node will no longer be resized to 0×0 by default, making the video invisible in the process (even if the audio can still be heard).
This commit is contained in:
parent
1b057e18f2
commit
983ce7e9f3
@ -58,7 +58,7 @@
|
||||
<member name="bus" type="StringName" setter="set_bus" getter="get_bus" default="&"Master"">
|
||||
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">
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user