Bagikan melalui


VideoPlayer Members

The following tables list the members exposed by the VideoPlayer type.

Public Constructors

Name Description
Public Method VideoPlayer Initializes a new instance of this class.

Public Properties

Name Description
Public Property IsDisposed Gets a value that indicates whether the object is disposed.
Public Property IsLooped Gets a value that indicates whether the player is playing video in a loop.
Public Property IsMuted Gets or sets the muted setting for the video player.
Public Property PlayPosition Gets the play position within the currently playing video.
Public Property State Gets the media playback state, MediaState.
Public Property Video Gets the Video that is currently playing.
Public Property Volume Gets or sets the video player volume.

Public Methods

Name Description
Public Method Dispose Immediately releases the unmanaged resources used by this object.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetTexture Retrieves a Texture2D containing the current frame of video being played.
Public Method GetType (Inherited from Object.)
Public Method Pause Pauses the currently playing video.
Public Method Play Plays a Video.
Public Method Resume Resumes a paused video.
Public Method Stop Stops playing a video.
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

VideoPlayer Class
Microsoft.Xna.Framework.Media Namespace