Video block – how to add “playsinline” attribute
-
I am using the Gutenberg native block to display a video, hosted through WordPress. I want to use the video basically as a silent background animation. It’s working just fine, except on mobile devices. I have it set to autoplay, muted and loop, but it won’t actually autoplay without hitting the play button. When
playsinlineis manually added to the<video>tag, it does work.Can we make
playsinlineone of the selections in the video block options?I dug into the Gutenberg packages on github, and from what I can tell, all of the code for the video block actually is set up for allowing the selection of
playsinline. Why doesn’t it show up in the WordPress editor?
The topic ‘Video block – how to add “playsinline” attribute’ is closed to new replies.