i am working on an app, in which i want to play a video intenting ACTION VIEW from URL receiving from WEB SERVER, i am getting unsupportable file format. my code is
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
videostring = ib.getVideostring();
Uri data = Uri.parse("file:///https://" + videostring.get(0));
intent.setDataAndType(data, "video/*");
context.startActivity(intent);
Change Uri data = Uri.parse("file:///https://" + videostring.get(0));
to
Uri data = Uri.parse("https://" + videostring.get(0));