|
@@ -1,4 +1,4 @@
|
|
|
-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 { closeStream, createRtmpPull, createRtmpPush, createRtspPull, createRtspPush, getConfig, getPullList, getPushList, getRecording, getRecordList, getStreams, getSummary, playRecord, postConfig, postRecord, stopPull, stopPush, stopRecord, updateConfig, controlGB28181, getGB28181Device, getGB28181Record } from '@/api/rts/stream'
|
|
|
import { message } from 'ant-design-vue'
|
|
import { message } from 'ant-design-vue'
|
|
|
|
|
|
|
|
export class RtsController {
|
|
export class RtsController {
|
|
@@ -96,4 +96,16 @@ export class RtsController {
|
|
|
static async summary () {
|
|
static async summary () {
|
|
|
return await getSummary()
|
|
return await getSummary()
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ static async listGB28181 () {
|
|
|
|
|
+ return await getGB28181Device()
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ static async getGB28181Record (params: {id: string, channel: string, startTime:string, endTime:string}) {
|
|
|
|
|
+ return await getGB28181Record(params)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ static async controlGB28181 (params: {id: string, channel: string, ptzcmd:string}) {
|
|
|
|
|
+ return await controlGB28181(params)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|