Share via


MediaPlayer.GameHasControl Property

Determines whether the game has control of the background music.

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

Syntax

public static bool GameHasControl { get; }

Property Value

true if the game has control of the background music; otherwise, false.

Remarks

A gamer can play his or her own music as the background to your game by using the Xbox 360 dashboard. If the game is currently playing custom background music (specified by the gamer using the Xbox 360 dashboard), calls to Play, Stop, Pause, Resume, MoveNext, and MovePrevious have no effect.

See Also

Reference

MediaPlayer Class
MediaPlayer Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune