PeerTube/server/core/helpers/custom-validators/metrics.ts

11 lines
280 B
TypeScript
Raw Normal View History

function isValidPlayerMode (value: any) {
// TODO: remove webtorrent in v7
return value === 'webtorrent' || value === 'web-video' || value === 'p2p-media-loader'
}
// ---------------------------------------------------------------------------
export {
isValidPlayerMode
}