koush / ion

Android Asynchronous Networking and Image Loading
Other
6.29k stars 1.03k forks source link

Video Buffereing and streaming #530

Open larrytech7 opened 9 years ago

larrytech7 commented 9 years ago

Hello, This is not really an issue but more of a request. I can't seem to figure out if there some way to carryout video streaming from a remote source efficiently using ion. I would love to use this library to improve the efficiency of what i currently do 'manually'. Thanks

nschwermann commented 9 years ago

The default behavior of this library is not efficient for streaming because the default handler downloads the entire stream before any callback. However, you can extend AsycParser to get some better behavior. Here is a first pass at one I wrote as a plug in for ExoPlayer. https://gist.github.com/schwiz/194276523b8299da1cf6