I have a camera that streams a .bin video to a website, and I want to show this video in my android app.
For some reason it doesnt show even in a WebView, what can I do to resolve this? I tried using the Picasso library, didnt work. I also tried something like this, which also didnt work:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
VideoView videoView = findViewById(R.id.videoView);
Uri uri = Uri.parse(videoUrl);
videoView.setVideoURI(uri);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
mediaController.setMediaPlayer(videoView);
videoView.setMediaController(mediaController);
videoView.start();
I figured it out, for anyone interested here is the code: