I would like to know how to give a FileInputStream to a Videoview. I can see that we have an API like setDataSource() for mediaplayer, in which you can give a file descriptor. Is this same kind of thing possible in videoView?
Asked
Active
Viewed 1,621 times
1 Answers
0
Why do you want to set a FileInputStream ?
Just for your infomation VideoView is a thin wrapper over MediaPlayer. So if you HAVE to do this go ahead and write your own custom VideoView.

Reno
- 33,594
- 11
- 89
- 102
-
1__Why do you want to set a FileInputStream ?__ Why because, I have a buffered file which will should be given to player. This buffered file will be appended every time. – Navaneeth Sen Feb 25 '11 at 14:02
-
I assume (from your previous question) that this file is streamed from the net. So you can directly use that URL and the VideoView will stream the video. – Reno Feb 25 '11 at 14:05
-
2I want to use FileInputStream because it's an internal file I am trying to play... – dangalg Feb 18 '15 at 19:48
-
1Have you been able to do it? I am planning to do the same thing – yeahman Feb 15 '16 at 04:36