mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Remove web video redundancy support
It's not used anymore in the player since several major versions now, so there's no point in continuing to store these video files
This commit is contained in:
parent
23cd92430f
commit
05f105d03f
32 changed files with 669 additions and 1036 deletions
|
@ -3,28 +3,15 @@ import { MStreamingPlaylist, MVideo, MVideoFile, MVideoUUID } from '@server/type
|
|||
|
||||
// ################## Redundancy ##################
|
||||
|
||||
function generateHLSRedundancyUrl (video: MVideo, playlist: MStreamingPlaylist) {
|
||||
export function generateHLSRedundancyUrl (video: MVideo, playlist: MStreamingPlaylist) {
|
||||
// Base URL used by our HLS player
|
||||
return WEBSERVER.URL + STATIC_PATHS.REDUNDANCY + playlist.getStringType() + '/' + video.uuid
|
||||
}
|
||||
|
||||
function generateWebVideoRedundancyUrl (file: MVideoFile) {
|
||||
return WEBSERVER.URL + STATIC_PATHS.REDUNDANCY + file.filename
|
||||
}
|
||||
|
||||
// ################## Meta data ##################
|
||||
|
||||
function getLocalVideoFileMetadataUrl (video: MVideoUUID, videoFile: MVideoFile) {
|
||||
export function getLocalVideoFileMetadataUrl (video: MVideoUUID, videoFile: MVideoFile) {
|
||||
const path = '/api/v1/videos/'
|
||||
|
||||
return WEBSERVER.URL + path + video.uuid + '/metadata/' + videoFile.id
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
getLocalVideoFileMetadataUrl,
|
||||
|
||||
generateWebVideoRedundancyUrl,
|
||||
generateHLSRedundancyUrl
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue