mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 19:32:20 +08:00
Initial POC works with IPFS
This commit is contained in:
7
main.go
7
main.go
@ -10,6 +10,12 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
createIPFSDirectory()
|
||||
|
||||
resetDirectories()
|
||||
touch("hls/stream.m3u8")
|
||||
|
||||
go monitorVideoContent("./hls/")
|
||||
go startChatServer()
|
||||
|
||||
tcpAddr, err := net.ResolveTCPAddr("tcp", ":1935")
|
||||
@ -43,6 +49,7 @@ func main() {
|
||||
if err := srv.Serve(listener); err != nil {
|
||||
log.Panicf("Failed: %+v", err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func startChatServer() {
|
||||
|
||||
Reference in New Issue
Block a user