Closed halibegic closed 7 years ago
Hum, in fact you stream when the file is downloaded. The event "on stream rdy" means you have downloaded enough pieces of the file to start streaming without interuption ( the first one and the last one to determine the torrent and then the 3 after the one for starting streaming ). It's normal if it's a bit slow, android devices generaly are not that good compared to a computer and the stream can start after 1min or 2 in the worst case.
Ok I understand. Thank You.
Just one more question :) How to handle when the user seeks to half of the video, and there is no pieces downloaded? Thank You.
That's a question we cannot answer for you, you're building an app and should decide for yourself what the correct behaviour is. Although TorrentStreamServer-Android might be what you're looking for if you want it to continue to play.
Ok, thank You :+1:
Hi, first of all great lib but I'm wondering if it's possible to stream from torrent while downloading. Now I need to wait for "on stream ready" event and then to play the file. Thank You.