0 out of 3 rated this helpful - Rate this topic

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)

public static bool GameHasControl { get; }

Property Value

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

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.

If another application's background music is playing, your game will need to call in order to pause the other application's background music in order to play the game's music.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.