Support multiple adaptive bitrates

This commit is contained in:
Gabe Kangas
2020-06-09 01:52:15 -07:00
parent 29f51f6ccc
commit 0b5452de89
9 changed files with 213 additions and 54 deletions

View File

@@ -15,9 +15,9 @@ var server *Server
var online = false
func main() {
var hlsDirectoryPath = configuration.PublicHLSPath
log.Println("Starting up. Please wait...")
resetDirectories(configuration)
checkConfig(configuration)
var usingExternalStorage = false
@@ -31,8 +31,8 @@ func main() {
if usingExternalStorage {
storage.Setup(configuration)
hlsDirectoryPath = configuration.PrivateHLSPath
go monitorVideoContent(hlsDirectoryPath, configuration, storage)
// hlsDirectoryPath = configuration.PrivateHLSPath
go monitorVideoContent(configuration.PrivateHLSPath, configuration, storage)
}
go startChatServer()