Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Spawn go routine for saving segment
Gabe Kangas6439075f3622
diff --git a/playlistMonitor.go b/playlistMonitor.goindex c9b5fdb77f..783080e73f 100644--- a/playlistMonitor.go+++ b/playlistMonitor.go@@ -96,7 +96,13 @@ func monitorVideoContent(pathToMonitor string, configuration Config, storage ChuwritePlaylist(playlistString, path.Join(configuration.PublicHLSPath, relativePath))} else if filepath.Ext(event.Path) == ".ts" {segment := getSegmentFromPath(event.Path)- newObjectPath := storage.Save(path.Join(configuration.PrivateHLSPath, segment.RelativeUploadPath))++ newObjectPathChannel := make(chan string, 1)+ go func() {+ newObjectPath := storage.Save(path.Join(configuration.PrivateHLSPath, segment.RelativeUploadPath))+ newObjectPathChannel <- newObjectPath+ }()+ newObjectPath := <-newObjectPathChannelsegment.RemoteID = newObjectPath// fmt.Println("Uploaded", segment.RelativeUploadPath, "as", newObjectPath)