aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-08-25 09:03:51 +0200
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-08-25 09:03:51 +0200
commit19a7512a2d0898b9f6f870c653629fc8c61fe7b9 (patch)
tree19776d2923bd030072fc3a64ba0e9c9461e37e39 /src/frontend
parente6bd87cf846451bd61a3a7dc195cf6950a4d8b37 (diff)
feat: sort streams by bitrate
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/tubo/components/player.cljs4
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