Reputation: 21937
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?
Upvotes: 4
Views: 2933
Reputation: 856
AndroidVideoCache solves this problem. It allows stream and cache video simultaneously.
Upvotes: 3