VideoPlayer.Play Method

Plays a Video.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public void Play (
         Video video
)

Parameters

Exceptions

Exception type Condition
ArgumentNullException video is null.

Remarks

After calling Play, call GetTexture to get the current frame of video.

See Also

Reference

VideoPlayer Class
GetTexture
VideoPlayer Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP