4

I am developing a video playing app where an user can watch live streaming video as well as to save it app cache. I can stream a video using this code portion

videoView = (VideoView) rootView.findViewById(R.id.video_view);
videoView.setMediaController(new MediaController(this));
videoView.setVideoURI(Uri.parse(videoURL));
videoView.start();

I don't know how to cache the video in app storage by which user cannot modify or move the video content. So my question is How to cache a video in app storage? Is not possible or has performance issue? What are the alternative solution for this problem?

1
  • Did you ever manage to do this? @AndroidCodeHunter
    – Odin
    Mar 5, 2014 at 10:28

1 Answer 1

3

AndroidVideoCache solves this problem. It allows stream and cache video simultaneously.

1
  • Do you have a JAR file for your library which i can use in mine? Aug 13, 2018 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.