# Sandbox.VideoPlayer

Enables video playback and access to the video texture and audio.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`VideoPlayer`](/api/Sandbox.VideoPlayer/.ctor)

## Properties

- [`Audio`](/api/Sandbox.VideoPlayer/Audio): Access audio properties for this video playback.
- [`Channels`](/api/Sandbox.VideoPlayer/Channels): Number of audio channels.
- [`Duration`](/api/Sandbox.VideoPlayer/Duration): Gets the total duration of the video in seconds.
- [`HasAudio`](/api/Sandbox.VideoPlayer/HasAudio): Does the loaded video have audio?
- [`Height`](/api/Sandbox.VideoPlayer/Height): Height of the video.
- [`IsPaused`](/api/Sandbox.VideoPlayer/IsPaused): Has the video been paused?
- [`Muted`](/api/Sandbox.VideoPlayer/Muted): The video is muted
- [`OnAudioReady`](/api/Sandbox.VideoPlayer/OnAudioReady): Event that is invoked when the audio stream is created and ready to use.
- [`OnFinished`](/api/Sandbox.VideoPlayer/OnFinished): Video finished playing.
- [`OnLoaded`](/api/Sandbox.VideoPlayer/OnLoaded): Video successfully loaded.
- [`OnRepeated`](/api/Sandbox.VideoPlayer/OnRepeated): Video started playing again after looping.
- [`OnTextureData`](/api/Sandbox.VideoPlayer/OnTextureData): If this event is set, texture data will be provided instead of rendering to the texture.
- [`PlaybackTime`](/api/Sandbox.VideoPlayer/PlaybackTime): Gets the current playback time in seconds.
- [`Repeat`](/api/Sandbox.VideoPlayer/Repeat): Sets whether the video should loop when it reaches the end.
- [`SampleRate`](/api/Sandbox.VideoPlayer/SampleRate): Audio sample rate.
- [`Texture`](/api/Sandbox.VideoPlayer/Texture): Texture of the video frame.
- [`Width`](/api/Sandbox.VideoPlayer/Width): Width of the video.

## Methods

- [`Dispose`](/api/Sandbox.VideoPlayer/Dispose)
- [`Pause`](/api/Sandbox.VideoPlayer/Pause): Pauses video playback.
- [`Play`](/api/Sandbox.VideoPlayer/Play): Plays a video file from a URL. If there's already a video playing, it will stop.
- [`Present`](/api/Sandbox.VideoPlayer/Present): Present a video frame.
- [`Resume`](/api/Sandbox.VideoPlayer/Resume): Resumes video playback.
- [`Seek`](/api/Sandbox.VideoPlayer/Seek): Sets the playback position to a specified time in the video, given in seconds.
- [`Stop`](/api/Sandbox.VideoPlayer/Stop): Stops video playback.
- [`TogglePause`](/api/Sandbox.VideoPlayer/TogglePause): Toggle video playback
