Page 1 of 1
Doubt: Select audio
Posted: 02 Mar 2009 12:54
by Randall_8
I'm working with this project
http://xyber.abt.googlepages.com/workingjvlcexample, and I have one question:
- How can I implement the selection between 2 audios when the video file is dual?
Thanks.
Re: Doubt: Select audio
Posted: 02 Mar 2009 13:03
by Jean-Baptiste Kempf
You mean select channel when you have stereo?
Re: Doubt: Select audio
Posted: 02 Mar 2009 13:51
by Randall_8
You mean select channel when you have stereo?
No, I mean select audio track, nor audio channel. Sometimes, the video files (movies) have two languajes (for example: spanish-english) and with VLC media player you can choose them in Audio/Audio track/Track 1 or Track 2 or Disable. I would like to implement that menu, because when I play a video file with this project always it is selected Track 1 and I can't change it.
Re: Doubt: Select audio
Posted: 02 Mar 2009 14:14
by kooibosmania
Hi All
I am also wondering about this something like vlc frontend: rightmousclick select audiostream or subtitle stream
please let me know if there is a solution
Re: Doubt: Select audio
Posted: 02 Mar 2009 14:52
by Jean-Baptiste Kempf
audio-es is the variable to modify.
Re: Doubt: Select audio
Posted: 02 Mar 2009 15:01
by kooibosmania
Thanks j-b
I am fairly new to c# can you elaborate on this like where to put this.
sorry for your troubles
so far i got to
desc.Dispose();
VlcPlayer.Play();
VlcPlayer.Audio.Track = 3;
int audiotrcount = VlcPlayer.Audio.TrackCount;
this seems to work
Re: Doubt: Select audio
Posted: 02 Mar 2009 19:41
by Randall_8
I got it
. If someone wants to use it in Java:
jvlc = new JVLC(arg);
playlist = new Playlist(jvlc);
audio = new Audio(jvlc);
int audioTrack = 2;
audio.setTrack(playlist.getMediaInstance(), audioTrack);