mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Prefer web videos in favour of webtorrent
This commit is contained in:
parent
c3030e944a
commit
784e2ad5c3
102 changed files with 579 additions and 570 deletions
|
@ -104,7 +104,7 @@ function buildVideosHelpers () {
|
|||
const video = await VideoModel.loadFull(id)
|
||||
if (!video) return undefined
|
||||
|
||||
const webtorrentVideoFiles = (video.VideoFiles || []).map(f => ({
|
||||
const webVideoFiles = (video.VideoFiles || []).map(f => ({
|
||||
path: f.storage === VideoStorage.FILE_SYSTEM
|
||||
? VideoPathManager.Instance.getFSVideoFileOutputPath(video, f)
|
||||
: null,
|
||||
|
@ -138,8 +138,12 @@ function buildVideosHelpers () {
|
|||
}))
|
||||
|
||||
return {
|
||||
webtorrent: {
|
||||
videoFiles: webtorrentVideoFiles
|
||||
webtorrent: { // TODO: remove in v7
|
||||
videoFiles: webVideoFiles
|
||||
},
|
||||
|
||||
webVideo: {
|
||||
videoFiles: webVideoFiles
|
||||
},
|
||||
|
||||
hls: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue