I did a Player that works fine, i used mediaplayer/wpf/c#, when i open mkv file i get all audio tracks playing together, how can i do a combo box from where i can choose what audio track to use?
I found information about AudioStreamCount and GetAudioStreamLanguage, but it's working only in metro app, is there something similar for Desktop Windows 8.1 application?
Metro app analogue:
private void PopulateAudioTracks(MediaElement media, ComboBox audioSelection)
{
if (media.AudioStreamCount > 0)
{
for (int index = 0; index < media.AudioStreamCount; index++)
{
ComboBoxItem track = new ComboBoxItem();
track.Content = media.GetAudioStreamLanguage(index);
audioSelection.Items.Add(track);
}
}
}