warren-bank / Android-Bonjour-WebRTC

Android app that allows device discovery on WLAN (w/ Bonjour) and video calls to be placed between devices on WLAN (w/ WebRTC) without any external server.
GNU General Public License v2.0
14 stars 4 forks source link

use android system NSD_SERVICE replace jmdns #3

Closed zhubinsheng closed 1 year ago

zhubinsheng commented 1 year ago

NsdManager nsdManager = (NsdManager) getSystemService(NSD_SERVICE);

warren-bank commented 1 year ago

Hi. You're not wrong. This project already has a minSdkVersion that's >= 16, so NsdManager should work.

Trouble is.. I've never tried it. In my experience, things rarely work off the shelf, as advertised. So, at least for now, I'm learning in the direction of: if it ain't broken..

As with all things open-source with a copy-left GPL, feel free to fork and experiment.