Remove no longer used property
This commit is contained in:
parent
f949adb40c
commit
ae2e98877b
@ -42,7 +42,6 @@ type videoSettings struct {
|
|||||||
StreamingKey string `yaml:"streamingKey"`
|
StreamingKey string `yaml:"streamingKey"`
|
||||||
StreamQualities []StreamQuality `yaml:"streamQualities"`
|
StreamQualities []StreamQuality `yaml:"streamQualities"`
|
||||||
OfflineContent string `yaml:"offlineContent"`
|
OfflineContent string `yaml:"offlineContent"`
|
||||||
EnablePassthrough bool `yaml:"passthrough"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// StreamQuality defines the specifics of a single HLS stream variant.
|
// StreamQuality defines the specifics of a single HLS stream variant.
|
||||||
|
@ -69,7 +69,7 @@ func resetDirectories() {
|
|||||||
os.Remove("webroot/thumbnail.jpg")
|
os.Remove("webroot/thumbnail.jpg")
|
||||||
|
|
||||||
// Create private hls data dirs
|
// Create private hls data dirs
|
||||||
if !config.Config.VideoSettings.EnablePassthrough || len(config.Config.VideoSettings.StreamQualities) == 0 {
|
if len(config.Config.VideoSettings.StreamQualities) == 0 {
|
||||||
for index := range config.Config.VideoSettings.StreamQualities {
|
for index := range config.Config.VideoSettings.StreamQualities {
|
||||||
os.MkdirAll(path.Join(config.Config.PrivateHLSPath, strconv.Itoa(index)), 0777)
|
os.MkdirAll(path.Join(config.Config.PrivateHLSPath, strconv.Itoa(index)), 0777)
|
||||||
os.MkdirAll(path.Join(config.Config.PublicHLSPath, strconv.Itoa(index)), 0777)
|
os.MkdirAll(path.Join(config.Config.PublicHLSPath, strconv.Itoa(index)), 0777)
|
||||||
|
@ -30,7 +30,7 @@ func StartVideoContentMonitor(storage models.ChunkStorageProvider) error {
|
|||||||
|
|
||||||
// Create at least one structure to store the segments for the different stream variants
|
// Create at least one structure to store the segments for the different stream variants
|
||||||
variants = make([]models.Variant, len(config.Config.VideoSettings.StreamQualities))
|
variants = make([]models.Variant, len(config.Config.VideoSettings.StreamQualities))
|
||||||
if len(config.Config.VideoSettings.StreamQualities) > 0 && !config.Config.VideoSettings.EnablePassthrough {
|
if len(config.Config.VideoSettings.StreamQualities) > 0 {
|
||||||
for index := range variants {
|
for index := range variants {
|
||||||
variants[index] = models.Variant{
|
variants[index] = models.Variant{
|
||||||
VariantIndex: index,
|
VariantIndex: index,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user