开发者

How to give a FileInputStream to a Videoview?

开发者 https://www.devze.com 2023-02-13 23:15 出处:网络
I would like to know how to give a FileInputStream to a Videoview. I can see that we have an API like setData开发者_C百科Source() for mediaplayer, in which you can give a file descriptor. Is this same

I would like to know how to give a FileInputStream to a Videoview. I can see that we have an API like setData开发者_C百科Source() for mediaplayer, in which you can give a file descriptor. Is this same kind of thing possible in videoView?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消