How to play a video from Byte array?

前端 未结 3 1194
时光说笑
时光说笑 2021-02-06 04:17

I am working on an app which needs encryption of video files which is working quite well.But the method I am using to decrypt returns the video as in Byte array. So is there any

3条回答
  •  臣服心动
    2021-02-06 04:52

    You should not feed VideoView with a static file but with a stream. How to produce this stream? Refer to Android Supported Media Formats. The simplest may be a local http server. LocalSingleHttpServer is an example of a library component implementing this kind of solution.

提交回复
热议问题