class VideoPlayer
Enables video playback and access to the video texture and audio.
public Action OnLoaded { get; set; }
Video successfully loaded.
public Action OnAudioReady { get; set; }
Event that is invoked when the audio stream is created and ready to use.
public VideoPlayer.TextureChangedDelegate OnTextureData { get; set; }
If this event is set, texture data will be provided instead of rendering to the texture.
public bool Repeat { set; }
Sets whether the video should loop when it reaches the end.
public float Duration { get; }
Gets the total duration of the video in seconds.
public float PlaybackTime { get; }
Gets the current playback time in seconds.
public int SampleRate { get; }
Audio sample rate.
public int Channels { get; }
Number of audio channels.
public bool HasAudio { get; }
Does the loaded video have audio?
public bool IsPaused { get; }
Has the video been paused?
public Texture Texture { get; }
Texture of the video frame.
public int Width { get; }
Width of the video.
public int Height { get; }
Height of the video.
public VideoPlayer.AudioAccessor Audio { get; }
Access audio properties for this video playback.
public void Play( string url )
Plays a video file from a URL. If there's already a video playing, it will stop.
public void Play( BaseFileSystem filesystem, string path )
Plays a video file from a relative path. If there's already a video playing, it will stop.
public void Seek( float time )
Sets the playback position to a specified time in the video, given in seconds.
public bool Muted { get; set; }
The video is muted
public bool Equals( object obj )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public void Present( )
😔 No documentation found.
public VideoPlayer( )
😔 No documentation found.
public void Pause( )
😔 No documentation found.
public void Stop( )
😔 No documentation found.
public void Resume( )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public void TogglePause( )
😔 No documentation found.
public void Dispose( )
😔 No documentation found.