diff options
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/tubo/components/player.cljs | 2 |
1 files changed, 1 insertions, 1 deletions
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 [_] |