mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Create and inject caption playlist in HLS master
This commit is contained in:
parent
a7be820abc
commit
6e44e7e29a
49 changed files with 1368 additions and 401 deletions
|
@ -6,8 +6,7 @@ import { VideoModel } from '../../models/video/video.js'
|
|||
import { VideoCaptionModel } from '../../models/video/video-caption.js'
|
||||
import { AbstractSimpleFileCache } from './shared/abstract-simple-file-cache.js'
|
||||
|
||||
class VideoCaptionsSimpleFileCache extends AbstractSimpleFileCache <string> {
|
||||
|
||||
class VideoCaptionsSimpleFileCache extends AbstractSimpleFileCache<string> {
|
||||
private static instance: VideoCaptionsSimpleFileCache
|
||||
|
||||
private constructor () {
|
||||
|
@ -23,7 +22,7 @@ class VideoCaptionsSimpleFileCache extends AbstractSimpleFileCache <string> {
|
|||
if (!videoCaption) return undefined
|
||||
|
||||
if (videoCaption.isOwned()) {
|
||||
return { isOwned: true, path: videoCaption.getFSPath() }
|
||||
return { isOwned: true, path: videoCaption.getFSFilePath() }
|
||||
}
|
||||
|
||||
return this.loadRemoteFile(filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue