Simplify HLS storage paths (#1393)
* Remove private vs public HLS paths and add a HLS controller. Closes #875 * Use http.ServeFile instead
This commit is contained in:
@@ -7,8 +7,6 @@ const (
|
||||
StaticVersionNumber = "0.0.9" // Shown when you build from develop
|
||||
// WebRoot is the web server root directory.
|
||||
WebRoot = "webroot"
|
||||
// PrivateHLSStoragePath is the HLS write directory.
|
||||
PrivateHLSStoragePath = "hls"
|
||||
// FfmpegSuggestedVersion is the version of ffmpeg we suggest.
|
||||
FfmpegSuggestedVersion = "v4.1.5" // Requires the v
|
||||
// DataDirectory is the directory we save data to.
|
||||
@@ -18,8 +16,9 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
// PublicHLSStoragePath is the directory we write public HLS files to for distribution.
|
||||
PublicHLSStoragePath = filepath.Join(WebRoot, "hls")
|
||||
// BackupDirectory is the directory we write backup files to.
|
||||
BackupDirectory = filepath.Join(DataDirectory, "backup")
|
||||
|
||||
// HLSStoragePath is the directory HLS video is written to.
|
||||
HLSStoragePath = filepath.Join(DataDirectory, "hls")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user