cvs.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. declare namespace CVS {
  2. interface space {
  3. description: string
  4. deviceCount?: number | null
  5. deviceMode?: string | null
  6. spaceName: string
  7. spaceId?: string,
  8. status?: 'RUNNING' | 'STOPPED' | 'OPERATING' | ''
  9. type: 'RTMP' | 'GB28181' | 'ONVIF' | 'BVCP' | 'RTSP' | 'JT808' | '',
  10. upstreamAuth: {
  11. enabled: boolean
  12. key: string
  13. expire: number
  14. },
  15. downstreamAuth: {
  16. enabled: boolean
  17. key: string
  18. expire: number
  19. }
  20. recording: {
  21. 'enabled': boolean,
  22. 'duration': number, // 单个文件市长,显示分钟 传递秒
  23. 'format': 'FLV',
  24. 'recordType': 'PERIOD' // 这个保留 只有周期录制
  25. 'bucket': string
  26. }
  27. thumbnail: {
  28. enabled: boolean
  29. interval: number
  30. bucket: string
  31. }
  32. // ai 配置
  33. 'aiConfig': {
  34. 'enabled': boolean,
  35. 'configuration': [],
  36. 'bucket': string,
  37. }
  38. }
  39. interface device {
  40. deviceId: number, // 设备id
  41. deviceName: string // 设备名称
  42. type: 'RTSP' | 'RTMP' | 'GB28181' // 空间类型 RTSP RTMP GB28181
  43. description: string
  44. status: 'ONLINE' | 'OFFLINE' | 'PUSHING' | 'PULLING' | 'ERROR' // 设备状态,对应的值有 ONLINE 在线 OFFLINE 离线 PUSHING 推流中 PULLING 拉流中 ERROR 异常
  45. spaceId: string // 空间id
  46. spaceName: string // 空间名称
  47. deviceStreamId: string // 视频流id
  48. gisLongitude: string
  49. gisLatitude: string
  50. gisName: string
  51. }
  52. }