MediaPlayer.IsVisualizationEnabled Property

Gets or sets the visualization enabled setting for the media player.

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

public static bool IsVisualizationEnabled { get; set; }

Property Value

true if visualization is enabled; false otherwise.

When IsVisualizationEnabled is true, visualization data is enabled and GetVisualizationData will return visualization data for the currently playing song.

Dd254822.note(en-us,XNAGameStudio.41).gifWindows Phone Specific Information

Visualization data is not available on Windows Phone. Any attempt to get visualization data on the phone will populate the VisualizationData class with 0s.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions