From 20c229bfb7ae0eb7ce666de368d09cb369459003 Mon Sep 17 00:00:00 2001 From: RTAkland Date: Mon, 29 Sep 2025 02:07:43 +0800 Subject: [PATCH] Update README --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 920d0f1..cac9f2f 100644 --- a/README.md +++ b/README.md @@ -39,4 +39,22 @@ kotlin { } } } +``` + +There is a simple airplay2 service + +```kotlin + val service = createService( + serviceType = "_airplay._tcp.local.", + serviceName = "AP@RTAST", + hostname = "rtakland.local.", + ipAddress = "192.168.10.104", + port = 7001, + bindAddress = "192.168.10.104", + mdnsPort = 5356, + ) + while (true) { + service.broadcast() + delay(2000L) + } ``` \ No newline at end of file