Control for playing video streams.
    public class VideoPlayer : Control

Control node for playing video streams. Supported formats are [url=https://www.webmproject.org/]WebM[/url] and [url=https://www.theora.org/]Ogg Theora[/url].

Inheritance Chain

Constructors

    public VideoPlayer()

Signals

    "finished" ()

Emitted when playback is finished.

Properties

    public int AudioTrack { get; set; }

The embedded audio track to play.

    public bool Autoplay { get; set; }

If true, playback starts when the scene loads.

    public int BufferingMsec { get; set; }

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

    public string Bus { get; set; }

Audio bus to use for sound playback.

    public bool Expand { get; set; }

If true, the video scales to the control size.

    public bool Paused { get; set; }

If true, the video is paused.

    public VideoStream Stream { get; set; }

    public float StreamPosition { get; set; }

The current position of the stream, in seconds.

    public float Volume { get; set; }

Audio volume as a linear value.

    public float VolumeDb { get; set; }

Audio volume in dB.

Methods

    [Obsolete("GetAudioTrack is deprecated. Use the AudioTrack property instead.")]
    public int GetAudioTrack()

Getter for AudioTrack

    [Obsolete("GetBufferingMsec is deprecated. Use the BufferingMsec property instead.")]
    public int GetBufferingMsec()

Getter for BufferingMsec

    [Obsolete("GetBus is deprecated. Use the Bus property instead.")]
    public string GetBus()

Getter for Bus

    [Obsolete("GetStream is deprecated. Use the Stream property instead.")]
    public VideoStream GetStream()

Getter for Stream

    public string GetStreamName()

Returns the video stream’s name.

    [Obsolete("GetStreamPosition is deprecated. Use the StreamPosition property instead.")]
    public float GetStreamPosition()

Getter for StreamPosition

    public Texture GetVideoTexture()

Returns the current frame as a Texture.

    [Obsolete("GetVolume is deprecated. Use the Volume property instead.")]
    public float GetVolume()

Getter for Volume

    [Obsolete("GetVolumeDb is deprecated. Use the VolumeDb property instead.")]
    public float GetVolumeDb()

Getter for VolumeDb

    [Obsolete("HasAutoplay is deprecated. Use the Autoplay property instead.")]
    public bool HasAutoplay()

Getter for Autoplay

    [Obsolete("HasExpand is deprecated. Use the Expand property instead.")]
    public bool HasExpand()

Getter for Expand

    [Obsolete("IsPaused is deprecated. Use the Paused property instead.")]
    public bool IsPaused()

Getter for Paused

    public bool IsPlaying()

Returns true if the video is playing.

    public void Play()

Starts the video playback.

    [Obsolete("SetAudioTrack is deprecated. Use the AudioTrack property instead.")]
    public void SetAudioTrack(int track)

Setter for AudioTrack

    [Obsolete("SetAutoplay is deprecated. Use the Autoplay property instead.")]
    public void SetAutoplay(bool enabled)

Setter for Autoplay

    [Obsolete("SetBufferingMsec is deprecated. Use the BufferingMsec property instead.")]
    public void SetBufferingMsec(int msec)

Setter for BufferingMsec

    [Obsolete("SetBus is deprecated. Use the Bus property instead.")]
    public void SetBus(string bus)

Setter for Bus

    [Obsolete("SetExpand is deprecated. Use the Expand property instead.")]
    public void SetExpand(bool enable)

Setter for Expand

    [Obsolete("SetPaused is deprecated. Use the Paused property instead.")]
    public void SetPaused(bool paused)

Setter for Paused

    [Obsolete("SetStream is deprecated. Use the Stream property instead.")]
    public void SetStream(VideoStream stream)

Setter for Stream

    [Obsolete("SetStreamPosition is deprecated. Use the StreamPosition property instead.")]
    public void SetStreamPosition(float position)

Setter for StreamPosition

    [Obsolete("SetVolume is deprecated. Use the Volume property instead.")]
    public void SetVolume(float volume)

Setter for Volume

    [Obsolete("SetVolumeDb is deprecated. Use the VolumeDb property instead.")]
    public void SetVolumeDb(float db)

Setter for VolumeDb

    public void Stop()

Stops the video playback.

Tags: