After looking and playing a little with Xbmc code I find that it would be quite easy to implement this.
Should work the same as PrepareDownload.
The only question would be should the function return just a port and an url or also the ip.
For the IP that would need to extend IClient or ITransportLayer to know on what interface the client did query JSON and return the corresponding address.
Should work the same as PrepareDownload.
The only question would be should the function return just a port and an url or also the ip.
For the IP that would need to extend IClient or ITransportLayer to know on what interface the client did query JSON and return the corresponding address.