X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/9826f99c41c0685ee15540b4544997c8da8c0eb4..21cacceea00a4181566b4c41ee50cdf2ed1cd55f:/src/com/owncloud/android/media/MediaService.java diff --git a/src/com/owncloud/android/media/MediaService.java b/src/com/owncloud/android/media/MediaService.java index 15fad667..7bd9c0c6 100644 --- a/src/com/owncloud/android/media/MediaService.java +++ b/src/com/owncloud/android/media/MediaService.java @@ -454,11 +454,6 @@ public class MediaService extends Service implements OnCompletionListener, OnPre releaseResources(false); // release everything except MediaPlayer try { -// if (mFile == null) { -// Toast.makeText(this, R.string.media_err_nothing_to_play, Toast.LENGTH_LONG).show(); -// processStopRequest(true); -// return; - if (mAccount == null) { Toast.makeText(this, R.string.media_err_not_in_owncloud, Toast.LENGTH_LONG).show(); processStopRequest(true); @@ -468,7 +463,7 @@ public class MediaService extends Service implements OnCompletionListener, OnPre createMediaPlayerIfNeeded(); mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); String url = mFile.getStoragePath(); - // Streaming is not possible right now + if (url == null || url.length() <= 0) { url = AccountUtils.constructFullURLForAccount(this, mAccount) + mFile.getRemotePath(); }