X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/7e96305668f038aee9ffe5cc3fe0c17a293fed6e..2477d496e3cdfe4eb7735a8e8c4e095bc201be61:/src/com/owncloud/android/ui/preview/PreviewMediaFragment.java diff --git a/src/com/owncloud/android/ui/preview/PreviewMediaFragment.java b/src/com/owncloud/android/ui/preview/PreviewMediaFragment.java index 2c5527c0..b0578c2b 100644 --- a/src/com/owncloud/android/ui/preview/PreviewMediaFragment.java +++ b/src/com/owncloud/android/ui/preview/PreviewMediaFragment.java @@ -21,6 +21,7 @@ package com.owncloud.android.ui.preview; import android.accounts.Account; import android.app.Activity; +import android.content.ContentResolver; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.MediaMetadataRetriever; @@ -439,8 +440,7 @@ public class PreviewMediaFragment extends FileFragment implements // load the video file in the video player ; // when done, VideoHelper#onPrepared() will be called - Uri uri = Uri.parse(getFile().getStoragePath()); - mVideoPreview.setVideoPath(uri.encode(getFile().getStoragePath())); + mVideoPreview.setVideoURI(getFile().getStorageUri()); } @@ -491,7 +491,7 @@ public class PreviewMediaFragment extends FileFragment implements mVideoPreview.stopPlayback(); mAutoplay = false; mSavedPlaybackPosition = 0; - mVideoPreview.setVideoPath(getFile().getStoragePath()); + mVideoPreview.setVideoURI(getFile().getStorageUri()); } } } // else : called from onError()