From 416ae533888bce6963c1f9db8db0056837ee521a Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 21 Aug 2023 01:56:34 +0200 Subject: fix(frontend): Use stream types from options on source change --- src/frontend/tubo/components/player.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frontend') diff --git a/src/frontend/tubo/components/player.cljs b/src/frontend/tubo/components/player.cljs index c4b5df7..1d76e89 100644 --- a/src/frontend/tubo/components/player.cljs +++ b/src/frontend/tubo/components/player.cljs @@ -59,7 +59,7 @@ (fn [this [_ prev-argv prev-more]] (when (and @!player (not= prev-more (first (r/children this)))) (.src @!player (apply array (map #(js-obj "type" % "src" (first (r/children this))) - ["video/mp4" "video/webm"]))) + (map #(get % "type") (get options "sources"))))) (.ready @!player #(.play @!player)))) :component-will-unmount (fn [_] -- cgit v1.2.3