Accepting rtsp streams with http url
This commit is contained in:
parent
390847ab95
commit
ad62d0fe81
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user