
* subtitlesFile The subtitles file to play. This is seen here.īelow are some code snippets of how I'm starting the VideoPlayerActivity through an intent.

When tapping, "Select subtitle file" VLC states there are no subtitle files in the directory and the URI is prefixed with, "content://" as expected.īoth the video file and subtitles file share the same parent directory and are provided using FileProvider.

I'm seeing that the, "Subtitles" menu item remains grayed out and downloading subtitles doesn't seem to change this state. Unfortunately, I can't seem to get this to work. I am targeting API 27 and using a FileProvider to allow access to files.Īccording to the documentation here, if you set the, "subtitles_location" extra, then you can provide the path of the subtitles file.

I'm having trouble setting the subtitles location when starting the VideoPlayerActivity of VLC for Android.
