[Android] [PATCH] Video : Convert video location path to URI

Alexandre Perraud 4leyx4ndre at gmail.com
Fri Aug 8 17:34:42 CEST 2014


    When starting from external application. Fix #9766
---
 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index e83f5dc..bbba47d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1872,7 +1872,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
             } /* External application */
             else if (getIntent().getDataString() != null) {
                 // Plain URI
-                mLocation = getIntent().getDataString();
+                mLocation = LibVLC.PathToURI(getIntent().getDataString());
                 // Remove VLC prefix if needed
                 if (mLocation.startsWith("vlc://")) {
                     mLocation = mLocation.substring(6);
-- 
1.9.1



More information about the Android mailing list