My code is below for streaming video:
VideoView vv = (VideoView)this.findViewById(R.id.screen_video); Uri uri = Uri.parse(URL); vv.setVideoURI(uri); vv.start();
It works. But if the URL format is not supported by the Android phone or pad. It shows a dialog, not a screen. But it is still streaming with a black screen. I want to get an error message and access as an exception. But I do not know how to get this?
Another problem is that streaming can cause crashes when using low-speed Wi-Fi. How to check it is waiting for low Wi-Fi speed?
source share