mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-27 15:37:50 +08:00
Pre Merge pull request !14 from AlphaWu/Zafu-Dev-PR
This commit is contained in:
commit
a240a6bae6
@ -248,6 +248,23 @@ public class ZLMHttpHookListener {
|
||||
ret.put("msg", "success");
|
||||
return new ResponseEntity<String>(ret.toString(),HttpStatus.OK);
|
||||
}
|
||||
/**
|
||||
* 录制hls完成后通知事件;此事件对回复不敏感。
|
||||
*
|
||||
*/
|
||||
@ResponseBody
|
||||
@PostMapping(value = "/on_record_ts", produces = "application/json;charset=UTF-8")
|
||||
public ResponseEntity<String> onRecordTs(@RequestBody JSONObject json){
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("[ ZLM HOOK ]on_record_ts API调用,参数:" + json.toString());
|
||||
}
|
||||
String mediaServerId = json.getString("mediaServerId");
|
||||
JSONObject ret = new JSONObject();
|
||||
ret.put("code", 0);
|
||||
ret.put("msg", "success");
|
||||
return new ResponseEntity<String>(ret.toString(),HttpStatus.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
* rtsp专用的鉴权事件,先触发on_rtsp_realm事件然后才会触发on_rtsp_auth事件。
|
||||
|
||||
@ -495,14 +495,14 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
||||
param.put("api.secret",mediaServerItem.getSecret()); // -profile:v Baseline
|
||||
param.put("ffmpeg.cmd","%s -fflags nobuffer -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s");
|
||||
param.put("hook.enable","1");
|
||||
param.put("hook.on_flow_report","");
|
||||
param.put("hook.on_flow_report",String.format("%s/on_flow_report", hookPrex));
|
||||
param.put("hook.on_play",String.format("%s/on_play", hookPrex));
|
||||
param.put("hook.on_http_access","");
|
||||
param.put("hook.on_http_access",String.format("%s/on_http_access", hookPrex));
|
||||
param.put("hook.on_publish", String.format("%s/on_publish", hookPrex));
|
||||
param.put("hook.on_record_mp4",recordHookPrex != null? String.format("%s/on_record_mp4", recordHookPrex): "");
|
||||
param.put("hook.on_record_ts","");
|
||||
param.put("hook.on_rtsp_auth","");
|
||||
param.put("hook.on_rtsp_realm","");
|
||||
param.put("hook.on_record_ts",String.format("%s/on_record_ts", hookPrex));
|
||||
param.put("hook.on_rtsp_auth",String.format("%s/on_rtsp_auth", hookPrex));
|
||||
param.put("hook.on_rtsp_realm",String.format("%s/on_rtsp_realm", hookPrex));
|
||||
param.put("hook.on_server_started",String.format("%s/on_server_started", hookPrex));
|
||||
param.put("hook.on_shell_login",String.format("%s/on_shell_login", hookPrex));
|
||||
param.put("hook.on_stream_changed",String.format("%s/on_stream_changed", hookPrex));
|
||||
|
||||
@ -240,24 +240,31 @@
|
||||
});
|
||||
|
||||
},
|
||||
deleteStreamProxy: function(row){
|
||||
let that = this;
|
||||
this.getListLoading = true;
|
||||
that.$axios({
|
||||
method:"delete",
|
||||
url:"/api/proxy/del",
|
||||
params:{
|
||||
app: row.app,
|
||||
stream: row.stream
|
||||
}
|
||||
}).then((res)=>{
|
||||
that.getListLoading = false;
|
||||
that.initData()
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
that.getListLoading = false;
|
||||
});
|
||||
},
|
||||
deleteStreamProxy: function(row){
|
||||
this.$confirm('确认删除此路数据?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
let that = this;
|
||||
this.getListLoading = true;
|
||||
that.$axios({
|
||||
method:"delete",
|
||||
url:"/api/proxy/del",
|
||||
params:{
|
||||
app: row.app,
|
||||
stream: row.stream
|
||||
}
|
||||
}).then((res)=>{
|
||||
that.getListLoading = false;
|
||||
that.initData()
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
that.getListLoading = false;
|
||||
});
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
start: function(row){
|
||||
let that = this;
|
||||
this.getListLoading = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user