VideoPlayerΒΆ
-
class
VideoPlayer: System.Object, System.IDisposable -
readonly bool
IsDisposed Gets a value that indicates whether the object is disposed.
-
bool
IsLooped Gets a value that indicates whether the player is playing video in a loop.
-
bool
IsMuted Gets or sets the muted setting for the video player.
-
readonly System.TimeSpan
PlayPosition Gets the play position within the currently playing video.
-
readonly MediaState
State Gets the media playback state, MediaState.
-
readonly Video
Video Gets the Video that is currently playing.
-
float
Volume Video player volume, from 0.0f (silence) to 1.0f (full volume relative to the current device volume).
-
public Texture2D
GetTexture() Retrieves a Texture2D containing the current frame of video being played.
Returns: The current frame of video.
-
public void
Pause() Pauses the currently playing video.
-
public void
Play(Video video) Plays a Video.
Parameters: - video (Microsoft.Xna.Framework.Media.Video) – Video to play.
-
public void
Resume() Resumes a paused video.
-
public void
Stop() Stops playing a video.
-
public void
Dispose() Immediately releases the unmanaged resources used by this object.
-
readonly bool