Rails Video Autoplay Attribute
I use video_tagto display a video, for example:
<%= video_tag "tech4.mp4", autoplay: true %>
What creates the HTML that looks like this:
<video src="(big source file)" autoplay="autoplay"></video>
autoplayworks in Firefox, but not in Chrome or Safari. I realized that autoplay works when I change the HTML (in the browser) to:
<video src="(big source file)" autoplay></video>
How can I get this conclusion from video_tag? I tried :autoplay, autoplay: '', autoplay: nilbut nothing works.
+4