|
@@ -1,4 +1,4 @@
|
|
|
-import { closeStream, createRtmpPull, createRtmpPush, createRtspPull, createRtspPush, getConfig, getPullList, getPushList, getRecording, getRecordList, getStreams, getSummary, playRecord, postRecord, stopPull, stopPush, stopRecord, updateConfig } from '@/api/rts/stream'
|
|
|
|
|
|
|
+import { closeStream, createRtmpPull, createRtmpPush, createRtspPull, createRtspPush, getConfig, getPullList, getPushList, getRecording, getRecordList, getStreams, getSummary, playRecord, postConfig, postRecord, stopPull, stopPush, stopRecord, updateConfig } from '@/api/rts/stream'
|
|
|
import { message } from 'ant-design-vue'
|
|
import { message } from 'ant-design-vue'
|
|
|
|
|
|
|
|
export class RtsController {
|
|
export class RtsController {
|
|
@@ -84,11 +84,16 @@ export class RtsController {
|
|
|
return await getConfig(name)
|
|
return await getConfig(name)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- static async updateProtocol (name: 'RTSP' | 'RTMP' | 'HLS' | 'HDL' | 'GB28181', data: string) {
|
|
|
|
|
- await updateConfig(name, data)
|
|
|
|
|
|
|
+ static async postProtocol (name: 'RTSP' | 'RTMP' | 'HLS' | 'HDL' | 'GB28181', data: string) {
|
|
|
|
|
+ await postConfig(name, data)
|
|
|
message.success('修改协议成功')
|
|
message.success('修改协议成功')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ static async updateProtocol (name: 'RTSP' | 'RTMP' | 'HLS' | 'HDL' | 'GB28181') {
|
|
|
|
|
+ await updateConfig(name)
|
|
|
|
|
+ message.success('更新成功')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
static async summary () {
|
|
static async summary () {
|
|
|
return await getSummary()
|
|
return await getSummary()
|
|
|
}
|
|
}
|