Reputation: 166
I am trying to embed a video inside my reagent (clojurescript) web app, and it doesn't seem to work
the following just doesn't produce a video on my localhost webpage -
[:video {:muted true :loop true :autoplay true :height "240px" :width "320px"}
[:source {:type "video/mp4"
:src "C:\\Users\\user\\testProject\\src\\main\\resources\\testVideo.mp4"}]]
just to clarify - the rest of the web app does seem to work
I am using the shadow-cljs compiler with [reagent "1.1.1"]
As sanity check I tried to embed the video inside a simple html page (no clojurescript), and it does seem to work for me, here is the html I use -
<video width="320px" height="240px" autoplay loop muted>
<source src="C:\Users\user\testProject\src\main\resources\testVideo.mp4" type="video/mp4">
</video>
is there something I am missing or doing wrong? would love to get some help on that
btw - I used this html to hiccup converter
Upvotes: 0
Views: 65