From 1de16fe0f77d1cee7eb521486fc1d71aef2d3a36 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 10 Dec 2024 11:13:09 +0100 Subject: feat: remove player bogus cross-origin attribute --- src/frontend/tubo/player/views.cljs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/frontend/tubo/player/views.cljs b/src/frontend/tubo/player/views.cljs index 2a58bf6..47f6721 100644 --- a/src/frontend/tubo/player/views.cljs +++ b/src/frontend/tubo/player/views.cljs @@ -64,11 +64,12 @@ #(reset! !elapsed-time (.-currentTime @!player))) :slot "media" - :src (:content (nth (into video-streams audio-streams) - 0)) + + :src (-> (into video-streams audio-streams) + first + :content) :preload "auto" - :muted @(rf/subscribe [:player/muted]) - :crossOrigin ""}] + :muted @(rf/subscribe [:player/muted])}] [:div.ytp-gradient-bottom.absolute.w-full.bottom-0.pointer-events-none.bg-bottom.bg-repeat-x {:style {"paddingTop" "37px" -- cgit v1.2.3