Re:Show HN: WebRTC signalling data using QR codes
by hamandcheese on Friday October 12, 2018 @12:15PM
(#18202424)
Why does the QR code constantly change?
[ Parent
| on HN ]
Re:Show HN: WebRTC signalling data using QR codes
by AquiGorka on Friday October 12, 2018 @12:17PM
(#18202444)
I wasn't able to get all the info into one QR code, so I used a series of them (looping) to send all the data. I figure I can use this approach to send files too.
Re:Show HN: WebRTC signalling data using QR codes
by ggerganov on Friday October 12, 2018 @12:49PM
(#18202730)
What is the capacity of those QR codes?
When I played with WebRTC, I was able to pack the relevant SDP data to just 80 bytes:
- 1 Type of the SDP - Offer or Answer
- 1 Packet size in bytes (not including ECC bytes)
- 4 IP address of the transmitting peer
- 2 Network port that will be used for the communication
- 32 SHA-256 fingerprint of the session data
- 40 ICE Credentials - 16 bytes username + 24 bytes password
Re:Show HN: WebRTC signalling data using QR codes
by AquiGorka on Friday October 12, 2018 @01:50PM
(#18203242)
I found a similar limit (although I still want to try with different options for the qr codes). I send the data as is by splitting it into smaller segments and looping through them with more than one qr code.