优化点播结束后关闭RTPServer

This commit is contained in:
648540858
2022-09-14 16:11:18 +08:00
parent 250a059ca0
commit 5b3dc4d595
15 changed files with 193 additions and 29 deletions

View File

@@ -48,6 +48,8 @@ public class MessageForPushChannel {
*/
private String mediaServerId;
public static MessageForPushChannel getInstance(int type, String app, String stream, String gbId,
String platFormId, String platFormName, String serverId,
String mediaServerId){

View File

@@ -0,0 +1,71 @@
package com.genersoft.iot.vmp.service.bean;
/**
* 当redis回复推流结果上级平台
* @author lin
*/
public class MessageForPushChannelResponse {
/**
* 错误玛
* 0 成功 1 失败
*/
private int code;
/**
* 错误内容
*/
private String msg;
/**
* 流应用名
*/
private String app;
/**
* 流Id
*/
private String stream;
public static MessageForPushChannelResponse getInstance(int code, String msg, String app, String stream){
MessageForPushChannelResponse messageForPushChannel = new MessageForPushChannelResponse();
messageForPushChannel.setCode(code);
messageForPushChannel.setMsg(msg);
messageForPushChannel.setApp(app);
messageForPushChannel.setStream(stream);
return messageForPushChannel;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getApp() {
return app;
}
public void setApp(String app) {
this.app = app;
}
public String getStream() {
return stream;
}
public void setStream(String stream) {
this.stream = stream;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
}