Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I use axWindowsMediaPlayer control to play audio streams and I would like to change visualization programmatically. How can I achieve this?
I've googled a bit, but I couldn't find anything good. Am I missing something?
Posted

1 solution

The only way I believe there is , is by using the registry.
Here try this .:
C#
public void SetCurrentEffectPreset(int value)
{
    WindowsIdentity identity = WindowsIdentity.GetCurrent();
    string path = string.Format("{0}\\Software\\Microsoft\\MediaPlayer\\Preferences", identity.User.Value);
    RegistryKey key = Registry.Users.OpenSubKey(path, true);
    if (key == null)
        throw new Exception("Error! Registry not found!");
    key.SetValue("CurrentEffectPreset", value, RegistryValueKind.DWord);
    AxWindowsMediaPlayer1.BeginInit();   
 }
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900