From ad62d0fe811ede93783029356d2b5ca7ef11b541 Mon Sep 17 00:00:00 2001 From: Daniele Date: Wed, 13 Oct 2021 17:57:36 +0200 Subject: [PATCH] Accepting rtsp streams with http url --- .../main/java/it/danieleverducci/ojo/ui/AddStreamFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/it/danieleverducci/ojo/ui/AddStreamFragment.java b/app/src/main/java/it/danieleverducci/ojo/ui/AddStreamFragment.java index d8e63cd..13481a1 100644 --- a/app/src/main/java/it/danieleverducci/ojo/ui/AddStreamFragment.java +++ b/app/src/main/java/it/danieleverducci/ojo/ui/AddStreamFragment.java @@ -39,7 +39,7 @@ public class AddStreamFragment extends Fragment { public void onClick(View view) { // Check the field is filled String url = binding.streamUrl.getText().toString(); - if (!url.startsWith("rtsp://")) { + if (!(url.startsWith("rtsp://") || url.startsWith("http://"))) { Snackbar.make(view, R.string.add_stream_invalid_url, Snackbar.LENGTH_LONG) .setAction(R.string.add_stream_invalid_url_dismiss, null).show(); return;