Page 1 of 1

Error loading MRL

Posted: 15 May 2015 15:20
by theredfox
Hi all,
I got an error trying to use libvlc into an android application.

Code: Select all

// Create a new media player libvlc = new LibVLC(); libvlc.init(this); libvlc.setHardwareAcceleration(LibVLC.HW_ACCELERATION_DISABLED); libvlc.setSubtitlesEncoding(""); libvlc.setAout(LibVLC.AOUT_OPENSLES); libvlc.setTimeStretching(true); libvlc.setVerboseMode(true); if(LibVlcUtil.isGingerbreadOrLater()) libvlc.setVout(LibVLC.VOUT_ANDROID_WINDOW); else libvlc.setVout(LibVLC.VOUT_ANDROID_SURFACE); EventHandler.getInstance().addHandler(mHandler); holder.setKeepScreenOn(true); String file = LibVLC.PathToURI(media.toString()); Log.d(TAG, file); libvlc.playMRL(file);
The coe above is used to initialize the player but the call to

Code: Select all

libvlc.playMRL(file);
causes this error:
05-16 01:12:49.344 5952-6638/com.fox.red.provavlc E/VLC﹕ [ab7dd2b4] core input: open of `file:///content://com.android.providers.media.documents/document/video%3A134' failed
05-16 01:12:49.344 5952-6638/com.fox.red.provavlc E/VLC﹕ [ab7dd2b4] core input: Your input can't be opened
05-16 01:12:49.344 5952-6638/com.fox.red.provavlc E/VLC﹕ [ab7dd2b4] core input: VLC is unable to open the MRL 'file:///content://com.android.providers.media.documents/document/video%3A134'. Check the log for details.
The file exists and it works correctly in a VideoView.
I pickup the video from the android library.

Re: Error loading MRL

Posted: 20 May 2015 23:27
by Jean-Baptiste Kempf
Yes, please try the latest nightly build. We should have fixed that now.