Was trying to tinker with the source code to allow piece selection algorithm download of torrent files, this would allow users to stream torrent downloads without having to wait for them to fully download, would appreciate your support on this issue in trying to implement the algorithm with torrent downloads
The piece selection algorithm is abstracted to the interface class PieceSelector class. By default, BitTorrent download uses the subclass RarestPieceSelector which selects the rarest pieces among others. You can implement the new algorithm in the new sublcass and hook it up to DefaultPieceStorage.
I think it would be good to add the option to choose the algorithm by the user.
What kind of the piece selection algorithm do you want to implement?
If it is just select the piece with smallest index, then it is very easily accomplished.