Page 1 of 1

Disabling Track and Subtitles in VLC4

Posted: 13 Jul 2020 20:38
by ChristianH
Hi,

somehow disabling the subtitles or the audio track by using parameter -1 for libvlc_video_set_spu resp libvlc_audio_set_track does no longer seem to work on VLC4. It runs fine on VLC3, but I'm aware that the overall behavior changed from 3 to 4, so maybe there is an other way to solve this issue. Does someone have an suggestion how to turn of a subtitle once selected, properly?

Christian

Re: Disabling Track and Subtitles in VLC4

Posted: 15 Jul 2020 11:11
by tguillem
Hello,

libvlc_video_set_spu and libvlc_audio_set_track API are deprecated in VLC 4.0, they will be removed soon.

You should use +libvlc_media_player_select_track() introduced with https://git.videolan.org/?p=vlc.git;a=c ... 4a5983bfab