RSATom / QmlVlc

[ABANDONED] libvlc wrapper for Qt Quick 2/Qml
Other
139 stars 56 forks source link

VOB with two audio tracks #36

Closed kevkha closed 9 years ago

kevkha commented 9 years ago

My VOB karaoke video has two audio tracks as shown. VlcAudio.track and VlcAudio.channel does not seem to be for this feature. Am I right? I would like to toggle Track 1 and Track 2.

image

RSATom commented 9 years ago

https://github.com/RSATom/WebChimera/wiki/QML-API#vlcaudio

VlcAudio.channel is intended for switching between mono, stereo etc. modes VlcAudio.track is exactly for switching audio tracks.

What value do you get with vlcPlayer.audio.count when your file is playing?

kevkha commented 9 years ago

vlcPlayer.audio.count returns 3 which is right. I attempted to change to track 2 like so VlcAudio.track = 2 but it didn't work. This one works, vlcPlayer.audio.track = 2

Thanks for leading me to the right direction!

RSATom commented 9 years ago

Yes VlcAudio is just type value of which vlcPlayer.audio returns. I.e. you can use VlcAudio directly only to access enum values (VlcAdudio.Stereo for example). In other cases you should get it via vlcPlayer property. Same valid for all other types mentioned in documentation.

RSATom commented 9 years ago

btw, when you used VlcAudio.track = 2 you should have got error in application output window in QtCreator.