support lalmax-pro keepalive

This commit is contained in:
xugo
2025-12-08 18:48:49 +08:00
parent 348c0f7464
commit 20fb7dc979
5 changed files with 15 additions and 6 deletions
+2 -1
View File
@@ -54,7 +54,8 @@ func registerZLMWebhookAPI(r gin.IRouter, api WebHookAPI, handler ...gin.Handler
// onServerKeepalive 服务器定时上报时间,上报间隔可配置,默认 10s 上报一次
// https://docs.zlmediakit.com/zh/guide/media_server/web_hook_api.html#_16%E3%80%81on-server-keepalive
func (w WebHookAPI) onServerKeepalive(_ *gin.Context, in *onServerKeepaliveInput) (DefaultOutput, error) {
w.smsCore.Keepalive(in.MediaServerID)
// TODO: 仅支持默认
w.smsCore.Keepalive(sms.DefaultMediaServerID)
return newDefaultOutputOK(), nil
}