|
|
@ -37,8 +37,6 @@ func main() { |
|
|
|
usingExternalStorage = true |
|
|
|
usingExternalStorage = true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
resetDirectories(configuration) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if usingExternalStorage { |
|
|
|
if usingExternalStorage { |
|
|
|
storage.Setup(configuration) |
|
|
|
storage.Setup(configuration) |
|
|
|
go monitorVideoContent(configuration.PrivateHLSPath, configuration, storage) |
|
|
|
go monitorVideoContent(configuration.PrivateHLSPath, configuration, storage) |
|
|
@ -46,6 +44,7 @@ func main() { |
|
|
|
|
|
|
|
|
|
|
|
go startRTMPService() |
|
|
|
go startRTMPService() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resetDirectories(configuration) |
|
|
|
startWebServer() |
|
|
|
startWebServer() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|