cvs.d.ts 1.6 KB

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