Chocobozzz/PeerTube

View on GitHub
packages/models/src/metrics/playback-metric-create.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { VideoResolutionType } from '../videos/index.js'

export interface PlaybackMetricCreate {
  playerMode: 'p2p-media-loader' | 'webtorrent' | 'web-video' // FIXME: remove webtorrent player mode not used anymore in PeerTube v6

  resolution?: VideoResolutionType
  fps?: number

  p2pEnabled: boolean
  p2pPeers?: number

  resolutionChanges: number

  errors: number
  bufferStalled: number

  downloadedBytesP2P: number
  downloadedBytesHTTP: number

  uploadedBytesP2P: number

  videoId: number | string
}