VideoPlayer

    Category: Core

    Control for playing video streams.

    Properties

    get_stream_name ( ) const
    get_video_texture ( )
    is_playing ( ) const
    void ( )
    voidstop ( )

    Signals

    Emitted when playback is finished.

    Control node for playing video streams. Supported formats are WebM and OGV Theora.

    Property Descriptions

    • audio_track
    Setterset_audio_track(value)
    Getterget_audio_track()

    The embedded audio track to play.


    Setterset_autoplay(value)
    Getterhas_autoplay()

    • buffering_msec

    Amount of time in milliseconds to store in buffer while playing.


    Setterset_bus(value)
    Getterget_bus()

    Audio bus to use for sound playback.


    • expand
    Setterset_expand(value)
    Getterhas_expand()

    If , the video scales to the control size. Default value: true.


    Setterset_paused(value)
    Getteris_paused()

    If , the video is paused.


    • stream

    Setterset_stream_position(value)
    Getterget_stream_position()

    The current position of the stream, in seconds.


    Setterset_volume(value)
    Getterget_volume()

    • volume_db
    Setterset_volume_db(value)
    Getterget_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 ( )