2023-07-29, 09:38
It looks like Kademlia maxes at 999 bytes, which is 1/3 of QR capacity, so ignore Kodi uploading the offer to Kademlia. Kademlia is only used for the WebRTC response. That will drastically speed up the connection.
So the flow is: Kodi sends the WebRTC offer to the browser via QR. The browser sends the WebRTC response to Kodi via Kademlia. That's enough to form a datachannel.
So the flow is: Kodi sends the WebRTC offer to the browser via QR. The browser sends the WebRTC response to Kodi via Kademlia. That's enough to form a datachannel.