X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/3ac67b3001eb36b0bcf49b0798a8d4e0dc1e9953..ec83a9f100897cf93df8aba990ab348ddfaaf05e:/src/com/owncloud/android/ui/preview/PreviewVideoActivity.java diff --git a/src/com/owncloud/android/ui/preview/PreviewVideoActivity.java b/src/com/owncloud/android/ui/preview/PreviewVideoActivity.java index 4ba53260..383b0828 100644 --- a/src/com/owncloud/android/ui/preview/PreviewVideoActivity.java +++ b/src/com/owncloud/android/ui/preview/PreviewVideoActivity.java @@ -207,15 +207,9 @@ public class PreviewVideoActivity extends FileActivity implements OnCompletionLi mVideoPlayer.setVideoPath(file.getStoragePath()); } else { - // not working yet String url; -// try { -// url = AccountUtils.constructFullURLForAccount(this, getAccount()) + file.getRemotePath(); - url = PreviewMediaFragment.generateUrlWithCredentials(getAccount(), getApplicationContext(), getFile()); - mVideoPlayer.setVideoURI(Uri.parse(url)); -// } catch (AccountNotFoundException e) { -// onError(null, MediaService.OC_MEDIA_ERROR, R.string.media_err_no_account); -// } + url = PreviewMediaFragment.generateUrlWithCredentials(getAccount(), getApplicationContext(), getFile()); + mVideoPlayer.setVideoURI(Uri.parse(url)); } // create and prepare control panel for the user