aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-10 11:13:09 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-10 11:13:09 +0100
commit1de16fe0f77d1cee7eb521486fc1d71aef2d3a36 (patch)
tree22cf5bb87f6653dfaeeb4830bbed7b9131d8fcf7
parentf992619e91bc5132edb1e0974cad4e3964866e53 (diff)
feat: remove player bogus cross-origin attribute
-rw-r--r--src/frontend/tubo/player/views.cljs9
1 files changed, 5 insertions, 4 deletions
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"