From c455734da7ee4d143634234e3bab6121f944f498 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 4 Jun 2024 22:04:44 +0200 Subject: feat: amend player styles and available streams --- src/frontend/tubo/components/player.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/frontend/tubo/components/player.cljs b/src/frontend/tubo/components/player.cljs index 5344d76..11c0674 100644 --- a/src/frontend/tubo/components/player.cljs +++ b/src/frontend/tubo/components/player.cljs @@ -9,7 +9,7 @@ (defn get-player-sources [available-streams] - (map (fn [{:keys [content]}] {:src content :type "video/mp4"}) available-streams)) + (map (fn [{:keys [content]}] {:src content :type "video/mp4"}) (reverse available-streams))) (defn video-player [stream !player] @@ -24,7 +24,8 @@ {:title name :src (get-player-sources (into video-streams audio-streams)) :poster thumbnail-url - :class "h-[500px] lg:h-[600px] w-full xl:w-3/5 overflow-x-hidden" + :class "w-full xl:w-3/5 overflow-hidden" + :playsInline true :ref #(reset! !player %) :loop (when show-main-player? (= @(rf/subscribe [:loop-playback]) :stream)) :onSeeked (when show-main-player? @@ -56,7 +57,7 @@ (r/create-class {:component-will-unmount #(rf/dispatch [:background-player/ready false]) :reagent-render - (fn [{:keys [name video-streams audio-streams thumbnail-url]} !player] + (fn [{:keys [name audio-streams thumbnail-url]} !player] [:> MediaPlayer {:title name :class "invisible fixed" -- cgit v1.2.3