Chocobozzz/PeerTube

View on GitHub
packages/models/src/videos/video-source.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { VideoFileMetadata } from './file/index.js'
import { VideoConstant } from './video-constant.model.js'

export interface VideoSource {
  inputFilename: string

  resolution?: VideoConstant<number>
  size?: number // Bytes

  width?: number
  height?: number

  fileUrl: string
  fileDownloadUrl: string

  fps?: number

  metadata?: VideoFileMetadata

  createdAt: string | Date

  // TODO: remove, deprecated in 6.1
  filename: string
}