Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've done some controls as follows:

C#
public void Form_KeyDown(object sender, KeyEventArgs e)
{

    if (e.ToString() == "p")
    {
        if (wmpPlayer.playState == WMPLib.WMPPlayState.wmppsPlaying)
        {
            wmpPlayer.Ctlcontrols.pause();
        }
        if (wmpPlayer.playState == WMPLib.WMPPlayState.wmppsPaused)
        {
            wmpPlayer.Ctlcontrols.play();
        }
    }
    if(e.ToString()=="+")
        wmpPlayer.settings.volume += 1;
    if (e.ToString() == "-")
        wmpPlayer.settings.volume -= 1;
    if (e.ToString() == "U")
        wmpPlayer.settings.mute = true;
    
}

I can use all the necessary controls events except Change Audio Language Tracks. I found

C#
public System.Int32 currentAudioLanguage {get; set;}

at msdn. But i can't set Language Track to currently playing media. Any help would be appreciated.
Posted
Updated 29-Jan-12 2:33am
v2

1 solution

I've got the solution myself. It needs to type cast the control with IWmpcontrols3.

((IWMPcontrols3)player.ctlcontrols).setAudioLanguage= 1 or 2 or 3
but I'm not sure the syntax details
 
Share this answer
 

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