diff options
-rw-r--r-- | src/frontend/tubo/player/views.cljs | 9 |
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" |