quiet / quiet-js

Transmit data with sound using Web Audio -- Javascript binding for libquiet
BSD 3-Clause "New" or "Revised" License
2.2k stars 151 forks source link

Safari mobile support #48

Open tomasmcm opened 2 years ago

tomasmcm commented 2 years ago

Found this super cool library from a newsletter, this is the sort of thing that really feels like magic 😍 I immediatelly had a bunch of ideas on how to use this, but the browser support was a bit lacking. I noticed Quiet.js is using navigator.getUserMedia which is deprecated and navigator.mediaDevices.getUserMedia has much better support, even Safari on mobile!

I did a quick test https://github.com/tomasmcm/quiet-js/commit/6b8bbd6501744948d7365f60a1315691e164bcd5 and it does work on my iPhone!!! I can make a simple PR with that change, is that something you'd want? (I saw the last update was May 2021)

shurochka1396 commented 2 years ago

very cool