VideoPlayer
Category: Core
Control for playing video streams.
Properties
get_stream_name ( ) const | |
get_video_texture ( ) | |
is_playing ( ) const | |
void | ( ) |
void | stop ( ) |
Signals
Emitted when playback is finished.
Control node for playing video streams. Supported formats are WebM and OGV Theora.
Property Descriptions
- audio_track
Setter | set_audio_track(value) |
Getter | get_audio_track() |
The embedded audio track to play.
- bool autoplay
Setter | set_autoplay(value) |
Getter | has_autoplay() |
- buffering_msec
Amount of time in milliseconds to store in buffer while playing.
- String bus
Setter | set_bus(value) |
Getter | get_bus() |
Audio bus to use for sound playback.
- expand
Setter | set_expand(value) |
Getter | has_expand() |
If , the video scales to the control size. Default value: true
.
- bool paused
Setter | set_paused(value) |
Getter | is_paused() |
If , the video is paused.
- stream
Setter | set_stream_position(value) |
Getter | get_stream_position() |
The current position of the stream, in seconds.
- float volume
Setter | set_volume(value) |
Getter | get_volume() |
- volume_db
Setter | set_volume_db(value) |
Getter | get_volume_db() |
Audio volume in dB.
- String get_stream_name ( ) const
Returns the video stream’s name.
- get_video_texture ( )
Returns the current frame as a Texture.
- is_playing ( ) const
Returns true
if the video is playing.
- void play ( )
Starts the video playback.
- void stop ( )