Error loading MRL

VLC for Android and Chrome OS specific usage questions
theredfox
New Cone
New Cone
Posts: 2
Joined: 15 May 2015 15:16

Error loading MRL

Postby theredfox » 15 May 2015 15:20

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Error loading MRL

Postby Jean-Baptiste Kempf » 20 May 2015 23:27

Yes, please try the latest nightly build. We should have fixed that now.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 9 guests