Why does the QR code constantly change?
Show HN: WebRTC signalling data using QR codes
11–20 of 55 posts
Re: Show HN: WebRTC signalling data using QR codes
#12Re: Show HN: WebRTC signalling data using QR codes
#13Will this work across NATs?
Re: Show HN: WebRTC signalling data using QR codes
#14Why does the QR code constantly change?
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.
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
#15Re: Show HN: WebRTC signalling data using QR codes
#16https://www.youtube.com/watch?v=Gvsm84xL9Sk (https://github.com/phiresky/webrtc-remote-touch-pen-input)
Sadly it needs a (tiny) server component to exchange the initial connection information - using a QR code in both directions is smart, but also pretty annoying for the user.
Re: Show HN: WebRTC signalling data using QR codes
#17Why does the QR code constantly change?
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.
Or, you could send the files over WebRTC datachannels after establishing the connection!
Re: Show HN: WebRTC signalling data using QR codes
#18Will this work across NATs?
This is still WebRTC, so the same limitations apply. The QR codes are used to share the `signalling data` for the WebRTC connection.
Re: Show HN: WebRTC signalling data using QR codes
#19Earlier quoted context omitted.
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.
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