开发者

progressive download of http links and play in android

开发者 https://www.devze.com 2023-01-16 23:51 出处:网络
In my android application i would like to download from ahttp link progressively and then play 开发者_JS百科it.That is first save some bytes and play it in the meanwhile buffer the next file.

In my android application i would like to download from a http link progressively and then play 开发者_JS百科it.That is first save some bytes and play it in the meanwhile buffer the next file. Could you please let me know as how i can achieve that in android?

Please share your valuable suggestions.

Thanks in advance:)


With the first answer, If you use RandomAccessFile, you will don't need to create so many files and restart MediaPlayer. Just download and play, if the file is not enough to play, you can pause the MediaPlayer.

0

精彩评论

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