添加发送媒体流, 添加媒体服务器节点管理ui,修复修改密码

This commit is contained in:
648540858
2021-09-25 22:12:15 +08:00
parent 4d92074505
commit 720231d33f
30 changed files with 890 additions and 47 deletions

View File

@@ -6,7 +6,7 @@ class MediaServer{
this.$axios = axios;
}
getMediaServerList(callback){
getOnlineMediaServerList(callback){
this.$axios({
method: 'get',
url:`/api/server/media_server/online/list`,
@@ -16,6 +16,16 @@ class MediaServer{
console.log(error);
});
}
getMediaServerList(callback){
this.$axios({
method: 'get',
url:`/api/server/media_server/list`,
}).then(function (res) {
if (typeof (callback) == "function") callback(res.data)
}).catch(function (error) {
console.log(error);
});
}
getMediaServer(id, callback){
this.$axios({
@@ -27,6 +37,49 @@ class MediaServer{
console.log(error);
});
}
checkServer(param, callback){
this.$axios({
method: 'get',
url:`/api/server/media_server/check`,
params: {
ip: param.ip,
port: param.httpPort,
secret: param.secret
}
}).then(function (res) {
if (typeof (callback) == "function") callback(res.data)
}).catch(function (error) {
console.log(error);
});
}
checkRecordServer(param, callback){
this.$axios({
method: 'get',
url:`/api/server/media_server/record/check`,
params: {
ip: param.ip,
port: param.recordAssistPort
}
}).then(function (res) {
if (typeof (callback) == "function") callback(res.data)
}).catch(function (error) {
console.log(error);
});
}
addServer(param, callback){
this.$axios({
method: 'post',
url:`/api/server/media_server/save`,
data: param
}).then(function (res) {
if (typeof (callback) == "function") callback(res.data)
}).catch(function (error) {
console.log(error);
});
}
}
export default MediaServer;