2013-10-15, 20:20
(2013-10-15, 17:50)Carb0 Wrote: As far as I know the player downloads the last 3 ts files (30 seconds buffer) and then starts to play the stream. To be 'sure' that a new ts file exists I have to wait at least 10 seconds until I can update the m3u8 file. And the XBMC player probably requests the m3u8 file even more frequently to keep the buffer constantly at 3 ts files.
It got the server working inside of the add-on but I don't know how to stop it when you leave the add-on and restart the server when you open the add-on again. I always get a sockets error.
Yes, the whole thing refreshes when you click on a category. If you could work on this that would be nice. I live in Europe and can't stay up every night just to test the add-on and the streams from last night already stopped working.
It would definitely be a nicer solution to use the server. Apok said that he's working on a fix.
How are you doing your loop to keep asyncore running? You should be doing like:
while not xbmc.abortRequested:
asyncore.loop(timeout=1)
when xbmc tries to close the addon, this loop should exit. I have not tested this, that is just what I found in various places.
If you could send me a link to what you have so far, I will debug it more tonight.