Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Sort bitrates for displaying. Closes #889
Gabe Kangase57fd15d8011
diff --git a/controllers/video.go b/controllers/video.goindex 60af7a5e6c..6cdca3a913 100644--- a/controllers/video.go+++ b/controllers/video.go@@ -15,15 +15,6 @@ type variantsResponse struct {Index int `json:"index"`}-// Len returns the number of variants.-func (v variants) Len() int { return len(v) }--// Less is less than..-func (v variants) Less(i, j int) bool { return v[i].VideoBitrate < v[j].VideoBitrate }--// Swap will swap two values.-func (v variants) Swap(i, j int) { v[i], v[j] = v[j], v[i] }-// GetVideoStreamOutputVariants will return the video variants available,func GetVideoStreamOutputVariants(w http.ResponseWriter, r *http.Request) {outputVariants := data.GetStreamOutputVariants()@@ -38,7 +29,7 @@ func GetVideoStreamOutputVariants(w http.ResponseWriter, r *http.Request) {}sort.Slice(result, func(i, j int) bool {- return outputVariants[i].VideoBitrate > outputVariants[j].VideoBitrate || !outputVariants[i].IsVideoPassthrough+ return outputVariants[j].VideoBitrate < outputVariants[i].VideoBitrate})WriteResponse(w, result)