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