Add support maxwidth/maxheight settings for homekit source

This commit is contained in:
Alex X
2025-11-11 15:48:12 +03:00
parent 2ce38b4486
commit d053d88ce9
3 changed files with 11 additions and 4 deletions
+2
View File
@@ -134,6 +134,8 @@ func streamHandler(rawURL string) (core.Producer, error) {
client, err := homekit.Dial(rawURL, srtp.Server)
if client != nil && rawQuery != "" {
query := streams.ParseQuery(rawQuery)
client.MaxWidth = core.Atoi(query.Get("maxwidth"))
client.MaxHeight = core.Atoi(query.Get("maxheight"))
client.Bitrate = parseBitrate(query.Get("bitrate"))
}