+// if (!mTargetFile.isDown()) { // Download the file
+// Log_OC.d(TAG, mTargetFile.getRemotePath() + " : File must be downloaded");
+// ((FileDisplayActivity) mContainerActivity).startDownloadForSending(mTargetFile);
+//
+// } else {
+ // mContainerActivity.getFileOperationsHelper().sendDownloadedFile(mTargetFile);
+
+// String url = "https://test:teddy03@192.168.0.100/owncloud/remote.php/webdav/2/1.ogg";
+// String url = "https://test:test@demo.owncloud.org/remote.php/webdav/Demo%20Movie%20OGG%20-%20Big%20Buck%20Bunny%20Trailer.ogg";
+
+
+// try{
+// Intent i = new Intent(Intent.ACTION_VIEW);
+// i.setComponent(new ComponentName("org.videolan.vlc.betav7neon", "org.videolan.vlc.betav7neon.gui.video.VideoPlayerActivity"));
+// i.setData(Uri.parse(url));
+// startActivity(i);
+// }
+// catch (ActivityNotFoundException e){
+// Uri uri = Uri.parse("http://play.google.com/store/apps/details?id=org.videolan.vlc.betav7neon");
+// Intent intent = new Intent (Intent.ACTION_VIEW, uri);
+// startActivity(intent);
+// }
+//
+
+ // TODO TOBI neuer Menüpunkt: Stream
+
+ try {
+ Context context = MainApp.getAppContext();
+ Account account = mContainerActivity.getStorageManager().getAccount();
+ String url = AccountUtils.constructFullURLForAccount(context, account) + mTargetFile.getRemotePath();
+
+ OwnCloudCredentials credentials = AccountUtils.getCredentialsForAccount(context, account);
+
+ url = url.replace("//", "//" + credentials.getUsername() + ":" + credentials.getAuthToken() + "@");
+
+ Log_OC.d(TAG, "Streaming url: " + url);
+ // VLC
+ Intent i = new Intent(Intent.ACTION_VIEW);
+ i.setComponent(new ComponentName("org.videolan.vlc.betav7neon", "org.videolan.vlc.betav7neon.gui.video.VideoPlayerActivity"));
+ i.setData(Uri.parse(url));
+ startActivity(i);
+
+ // MX
+// Intent i = new Intent(android.content.Intent.ACTION_VIEW);
+// i.setData(Uri.parse(url));
+// startActivity(i);
+ } catch (AccountUtils.AccountNotFoundException e) {
+ e.printStackTrace();
+ }
+ catch (ActivityNotFoundException e) {
+ // VLC
+ Uri uri = Uri.parse("http://play.google.com/store/apps/details?id=org.videolan.vlc.betav7neon");
+ Intent intent = new Intent(Intent.ACTION_VIEW, uri);
+ startActivity(intent);
+ } catch (AuthenticatorException e) {
+ e.printStackTrace();
+ } catch (OperationCanceledException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();