I can only get libVLC to play my SRT subtitles when the filename exactly matches the video filename, even when I explicitly load the subtitle file like so:
Code: Select all
// libvlcpp binding calls libvlc_media_player_add_slave()
m_Player->addSlave(VLC::MediaSlave::Type::Subtitle, subtitleFile, true);
...
m_Player->play();
The addSlave return code is OK, so I'm not sure why loading the SRT in this manner does not work. Please advise!