Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

557 B
Raw Blame
import { ConstantLabel } from '../../common/constant-label.model.js'
import { Video } from '../video.model.js'
import { VideoImportStateType } from './video-import-state.enum.js'

export interface VideoImport {
  id: number

  targetUrl: string
  magnetUri: string
  torrentName: string

  attempts: number

  createdAt: string
  updatedAt: string
  originallyPublishedAt?: string
  state: ConstantLabel<VideoImportStateType>
  error?: string

  video?: Video & { tags: string[] }

  videoChannelSync?: {
    id: number
    externalChannelUrl: string
  }
}