-// if (mVideoPreview.getWindowToken() != null) {
- // try to open with another app
-// try{
-// AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
-// builder.setMessage("May expose password?")
-// .setPositiveButton("Stream", new DialogInterface.OnClickListener() {
-// public void onClick(DialogInterface dialog, int id) {
-// Intent i = new Intent(android.content.Intent.ACTION_VIEW);
-// i.setData(Uri.parse(mUri));
-// startActivity(i);
-// }
-// })
-// .setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
-// public void onClick(DialogInterface dialog, int id) {
-// // User cancelled the dialog
-// }
-// });
-// builder.show();
-
- MediaService.streamWithExternalApp(mUri, getActivity()).show();
-
-// }
-// catch (ActivityNotFoundException e){
-// Intent i = new Intent(android.content.Intent.ACTION_VIEW);
-// i.setData(Uri.parse(mUri));
-// startActivity(i);
-// }
-// }
-// }