4

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?

Navaneeth Sen
  • 6,315
  • 11
  • 53
  • 82

1 Answers1

0

Why do you want to set a FileInputStream ?

use a path or a url

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
  • 2
    I want to use FileInputStream because it's an internal file I am trying to play... – dangalg Feb 18 '15 at 19:48
  • 1
    Have you been able to do it? I am planning to do the same thing – yeahman Feb 15 '16 at 04:36