On the SD-card I have a zip file containing one video file (.mp4). I need to play that video file via a VideoView without extracting the zip.
So far I have tried :
ZipFile zipFile = new ZipFile(new File("/sdcard/checking.zip"));
ZipEntry zipEntry = zipFile.getEntry("checking.mp4");
InputStream inStream = zipFile.getInputStream(zipEntry);
But I don't find any API that plays video from InputStream
. zipEntry.getSize()
does return the value.
I tried videoView.setVideoURI(Uri.parse("//sdcard/checking.zip!/checking.mp4"));
from HERE
But it shows "Can't play video". So how do I do that (mentioned in the title) on android.