Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
fix video variant sorting (#1150)
Meisamc116886998f7
diff --git a/controllers/video.go b/controllers/video.goindex 80c9bed459..9f95c772b2 100644--- a/controllers/video.go+++ b/controllers/video.go@@ -18,6 +18,11 @@ type variantsResponse struct {// GetVideoStreamOutputVariants will return the video variants available.func GetVideoStreamOutputVariants(w http.ResponseWriter, r *http.Request) {outputVariants := data.GetStreamOutputVariants()++ sort.Slice(outputVariants, func(i, j int) bool {+ return outputVariants[j].VideoBitrate < outputVariants[i].VideoBitrate+ })+result := make([]variantsResponse, len(outputVariants))for i, variant := range outputVariants {@@ -28,9 +33,5 @@ func GetVideoStreamOutputVariants(w http.ResponseWriter, r *http.Request) {result[i] = variantResponse}- sort.Slice(result, func(i, j int) bool {- return outputVariants[j].VideoBitrate < outputVariants[i].VideoBitrate- })-WriteResponse(w, result)}