[libVLC] Can't open DocumentFile's path
In my app I want to play a video contained on USB key on Android 9 device using LibVLC. Since it's SDK 28 I have to use SAF to open it. When I get OPEN_TREE autorisation the file URI is : 'content://com.android.externalstorage.documents/tree/6E34FB0834FAD257%3AFitImmersion/document/6E34FB0834FAD257%3AFitImmersion%2FTracks%2Fdemo%2Fdemo_5.mp4'
I set it to player and get the error: VLC is unable to open the MRL. Code is classic:
Media media = new Media(mLibVLC, uriToPlay);
vlcPlayer.setMedia(media);
media.release();
vlcPlayer.play();
When using Android native player have no problem.