Accepting rtsp streams with http url

This commit is contained in:
Daniele 2021-10-13 17:57:36 +02:00
parent 390847ab95
commit ad62d0fe81

View File

@ -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;