diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-08-25 09:03:51 +0200 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-08-25 09:03:51 +0200 |
commit | 19a7512a2d0898b9f6f870c653629fc8c61fe7b9 (patch) | |
tree | 19776d2923bd030072fc3a64ba0e9c9461e37e39 | |
parent | e6bd87cf846451bd61a3a7dc195cf6950a4d8b37 (diff) |
feat: sort streams by bitrate
-rw-r--r-- | src/frontend/tubo/components/player.cljs | 4 |
1 files 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 |