i found real problem behind freezing
a bit info first:
- you have playlist.m3u8 url
- everytime you fetch playlist.m3u8, it gives randomly generated chunk_blabla.m3u8 special for u
- that chunk_blabla.m3u8 contains 3 ts sequential (again random file name except "[number].ts"
- you have to remember segment number of ts to write it disk in order
problem:
- you keep getting/decoding playlist, chunks
you got :
1.ts from chunk1
2.ts from chunk1
3.ts from chunk1
1.ts from chunk2
2.ts from chunk2
...
- then your program/script tried to download old 1.ts from chunk1
even you have newer one
- server gives 404 error
simple way to block chaturboters
but since they cant handle this properly, freezing occurs when you are watching it from their own website, lol
what about rtmp btw ?