From 19a7512a2d0898b9f6f870c653629fc8c61fe7b9 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sun, 25 Aug 2024 09:03:51 +0200 Subject: feat: sort streams by bitrate --- src/frontend/tubo/components/player.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/tubo/components/player.cljs b/src/frontend/tubo/components/player.cljs index 54aed0d..e59d3b5 100644 --- a/src/frontend/tubo/components/player.cljs +++ b/src/frontend/tubo/components/player.cljs @@ -66,8 +66,8 @@ (if available-streams (->> available-streams (filter #(not= (:format %) "OPUS")) - (map (fn [{:keys [content]}] {:src content :type "video/mp4"})) - (sort-by :bitrate)) + (sort-by :bitrate) + (map (fn [{:keys [content]}] {:src content :type "video/mp4"}))) [])) (defn audio-player -- cgit v1.2.3