Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
VideoStreamPlayer¶
Inherits: Control < CanvasItem < Node < Object
A control used for video playback.
Description¶
A control used for playback of VideoStream resources.
Supported video formats are Ogg Theora (.ogv
, VideoStreamTheora) and any format exposed via a GDExtension plugin.
Note: Due to a bug, VideoStreamPlayer does not support localization remapping yet.
Warning: On Web, video playback will perform poorly due to missing architecture-specific assembly optimizations.
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
get_stream_length ( ) const |
|
get_stream_name ( ) const |
|
get_video_texture ( ) const |
|
is_playing ( ) const |
|
void |
play ( ) |
void |
stop ( ) |
Signals¶
finished ( )
Emitted when playback is finished.
Property Descriptions¶
int audio_track = 0
The embedded audio track to play.
bool autoplay = false
If true
, playback starts when the scene loads.
int buffering_msec = 500
Amount of time in milliseconds to store in buffer while playing.
StringName bus = &"Master"
void set_bus ( StringName value )
StringName get_bus ( )
Audio bus to use for sound playback.
bool expand = false
If true
, the video scales to the control size. Otherwise, the control minimum size will be automatically adjusted to match the video stream's dimensions.
bool loop = false
If true
, the video restarts when it reaches its end.