aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-08-21 01:56:34 +0200
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-08-21 01:56:34 +0200
commit416ae533888bce6963c1f9db8db0056837ee521a (patch)
tree38538ed0c40376aef44f831f9bba0899611e353a /src/frontend
parente00e9264f78343addb694b3ac8fb8939cfcfec37 (diff)
fix(frontend): Use stream types from options on source change
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/tubo/components/player.cljs2
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 [_]