The m3u8 file is a little bit different. The segment information is like the following---
***********************************************************
#EXTINF:10,
20111109T084638-01-26.ts?zbytes=0-333511
#EXTINF:10,
20111109T084638-01-26.ts?zbytes=333512-667023
***********************************************************
which means segment size does not equal the stream size.
I modified part of of hls_Download() function in modules/stream_filter/httplive.c. It solved part of the problem. Data of every segment can be read correctly. But some error occurred in demux/ts.c. I got an error: "lost synchro". It appeared when starting to play next segment. How could I fix this?
Thanks in advance.
What is the resolution of your media file, and the specifications of your phone's processor?