-1 = disabled track
0 = I think it dont means anything
1 = First subtitle track
2 = Second...
To active a desired subtitle track by the ID, just use as following:
Code: Select all
vlc.var.set(vlc.object.input(), "spu-es", 2)
Code: Select all
vlc.var.set(vlc.object.input(), "spu-es", 2)