title: Java VLCJ player, set audio track is not working
body: <p>I am currently working on java media player that can play <code>mkv</code> format. I am using <code>VLCJ</code>, everything is working except when I try to change audio track which is not working.</p>
  
  <p>here is the code</p>
  
  <pre><code>public class mediaplayer {
  
      private static JFileChooser filechooser = new JFileChooser();
  
      public mediaplayer() {
      }
  
      public static void main(String[] args) {
          String vlcPath = "", mediaPath = "";
          File ourfile;
  
          filechooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
          filechooser.showSaveDialog(null);
          ourfile = filechooser.getSelectedFile();
          mediaPath = ourfile.getAbsolutePath();
  
          EmbeddedMediaPlayerComponent mediacom = new EmbeddedMediaPlayerComponent();
  
          JFrame frame = new JFrame();
          frame.setContentPane(mediacom);
          frame.add(canvas);
          frame.setLocation(100, 100);
          frame.setSize(1050, 600);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  
          frame.setVisible(true);
  
          MediaPlayer mplayer = mediacom.getMediaPlayer();
  
          mplayer.playMedia(mediaPath);
          mplayer.setAudioTrack(1);
      }
  }
  </code></pre>