commit 12/11/2025
This commit is contained in:
@@ -247,6 +247,13 @@ class WebApp(val listenPort: Int, val userlist: List<Pair<String, String>>, val
|
||||
path("api") {
|
||||
//TODO https://stackoverflow.com/questions/70002015/streaming-into-audio-element
|
||||
path("LiveAudio") {
|
||||
post{
|
||||
val json : JsonNode = objectmapper.readTree(it.body())
|
||||
val broadcastzone = json.get("broadcastzone")?.asText("") ?: ""
|
||||
val command = json.get("command")?.asText("") ?: ""
|
||||
println("LiveAudio command=$command for zone $broadcastzone from ${it.host()}" )
|
||||
|
||||
}
|
||||
ws("/ws/{uuid}"){ws ->
|
||||
ws.onConnect {
|
||||
ctx ->
|
||||
|
||||
Reference in New Issue
Block a user