index.ts 1.18 KB
export interface VideoItemRecordType {
  id: string
  creator: string
  createTime: string
  name: string
  enabled: boolean
  tenantId: string
  sn: string
  organizationId: string
  organizationName: string
  status: boolean
  accessMode: number
  playProtocol: number
  params?: Params
  videoUrl: string
}

export interface Params {
  channelNo?: string
  deviceId?: string
}

export interface VideoChannelPlayAddressType {
  code: number
  message: string
  data: Data
}

export interface Data {
  app: string
  stream: string
  ip: any
  flv: string
  https_flv: string
  ws_flv: string
  wss_flv: string
  fmp4: string
  https_fmp4: string
  ws_fmp4: string
  wss_fmp4: string
  hls: string
  https_hls: string
  ws_hls: string
  wss_hls: string
  ts: string
  https_ts: string
  ws_ts: string
  wss_ts: any
  rtmp: string
  rtmps: string
  rtsp: string
  rtsps: string
  rtc: string
  rtcs: string
  mediaServerId: string
  tracks: Track[]
  startTime: any
  endTime: any
  progress: number
}

export interface Track {
  channels: number
  codecId: number
  codecIdName: any
  codecType: number
  ready: boolean
  sampleBit: number
  sampleRate: number
  fps: number
  height: number
  width: number
}