Skip to content

Commit

Permalink
Merge pull request #4 from liuqiyang7/fix_hook_on_server_started
Browse files Browse the repository at this point in the history
fix hook service on_server_started
  • Loading branch information
lunasaw authored Jun 29, 2024
2 parents b0bc42d + 4088a70 commit 9b0f458
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ public HookResult onStreamNotFound(@RequestBody OnStreamNotFoundHookParam param)
@PostMapping(value = "/on_server_started", produces = "application/json;charset=UTF-8")
public HookResult onServerStarted(@RequestBody ServerNodeConfig param) {
log.info("onServerStarted::param = {}", param);
// executor.execute(() -> zlmHookService.onServerStarted(JSON.parseObject(param.toJSONString(),
// ServerNodeConfig.class)));
executor.execute(() -> zlmHookService.onServerStarted(param));
return HookResult.SUCCESS();
}

Expand Down Expand Up @@ -197,4 +196,4 @@ public HookResult onRecordMp4(@RequestBody OnRecordMp4HookParam param) {
return HookResult.SUCCESS();
}

}
}

0 comments on commit 9b0f458

Please sign in to comment.