Disabling Track and Subtitles in VLC4

This forum is about all development around libVLC.
ChristianH
New Cone
New Cone
Posts: 8
Joined: 13 Mar 2020 20:07

Disabling Track and Subtitles in VLC4

Postby ChristianH » 13 Jul 2020 20:38

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

tguillem
Developer
Developer
Posts: 87
Joined: 04 May 2015 16:38
VLC version: ALL
Operating System: Linux/WIndows/Mac OS

Re: Disabling Track and Subtitles in VLC4

Postby tguillem » 15 Jul 2020 11:11

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests