mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Add ability to save replay of permanent lives
This commit is contained in:
parent
2024a3b933
commit
4ec52d04dc
20 changed files with 426 additions and 175 deletions
|
@ -1,6 +1,6 @@
|
|||
import { join } from 'path'
|
||||
import { CONFIG } from '@server/initializers/config'
|
||||
import { HLS_REDUNDANCY_DIRECTORY, HLS_STREAMING_PLAYLIST_DIRECTORY } from '@server/initializers/constants'
|
||||
import { HLS_REDUNDANCY_DIRECTORY, HLS_STREAMING_PLAYLIST_DIRECTORY, VIDEO_LIVE } from '@server/initializers/constants'
|
||||
import { isStreamingPlaylist, MStreamingPlaylistVideo, MVideo, MVideoFile, MVideoUUID } from '@server/types/models'
|
||||
import { removeFragmentedMP4Ext } from '@shared/core-utils'
|
||||
import { buildUUID } from '@shared/extra-utils'
|
||||
|
@ -21,6 +21,10 @@ function getLiveDirectory (video: MVideoUUID) {
|
|||
return getHLSDirectory(video)
|
||||
}
|
||||
|
||||
function getLiveReplayBaseDirectory (video: MVideoUUID) {
|
||||
return join(getLiveDirectory(video), VIDEO_LIVE.REPLAY_DIRECTORY)
|
||||
}
|
||||
|
||||
function getHLSDirectory (video: MVideoUUID) {
|
||||
return join(HLS_STREAMING_PLAYLIST_DIRECTORY, video.uuid)
|
||||
}
|
||||
|
@ -74,6 +78,7 @@ export {
|
|||
|
||||
getHLSDirectory,
|
||||
getLiveDirectory,
|
||||
getLiveReplayBaseDirectory,
|
||||
getHLSRedundancyDirectory,
|
||||
|
||||
generateHLSMasterPlaylistFilename,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue