Control to play video files.
    public class VideoPlayer : Control

This control has the ability to play video streams. The only format accepted is the OGV Theora, so any other format must be converted before using in a project.

Inheritance Chain

Constructors

    public VideoPlayer()

Properties

    public int AudioTrack { get; set; }

    public bool Autoplay { get; set; }

    public int BufferingMsec { get; set; }

The amount of milliseconds to store in buffer while playing.

    public string Bus { get; set; }

    public bool Expand { get; set; }

    public bool Paused { get; set; }

    public VideoStream Stream { get; set; }

    public float StreamPosition { get; set; }

The current position of the stream, in seconds.

    public float Volume { get; set; }

The volume of the audio track as a linear value.

    public float VolumeDb { get; set; }

Methods

    public int GetAudioTrack()

Getter for AudioTrack

    public int GetBufferingMsec()

Getter for BufferingMsec

    public string GetBus()

Getter for Bus

    public VideoStream GetStream()

Getter for Stream

    public string GetStreamName()

Get the name of the video stream.

    public float GetStreamPosition()

Getter for StreamPosition

    public Texture GetVideoTexture()

Get the current frame of the video as a Texture.

    public float GetVolume()

Getter for Volume

    public float GetVolumeDb()

Getter for VolumeDb

    public bool HasAutoplay()

Getter for Autoplay

    public bool HasExpand()

Getter for Expand

    public bool IsPaused()

Getter for Paused

    public bool IsPlaying()

Get whether or not the video is playing.

    public void Play()

Start the video playback.

    public void SetAudioTrack(int track)

Setter for AudioTrack

    public void SetAutoplay(bool enabled)

Setter for Autoplay

    public void SetBufferingMsec(int msec)

Setter for BufferingMsec

    public void SetBus(string bus)

Setter for Bus

    public void SetExpand(bool enable)

Setter for Expand

    public void SetPaused(bool paused)

Setter for Paused

    public void SetStream(VideoStream stream)

Setter for Stream

    public void SetStreamPosition(float position)

Setter for StreamPosition

    public void SetVolume(float volume)

Setter for Volume

    public void SetVolumeDb(float db)

Setter for VolumeDb

    public void Stop()

Stop the video playback.

Tags: