thomaspark / snowball

A WordPress plugin for making immersive longform articles
https://snowball.openhtml.org/
GNU General Public License v2.0
90 stars 24 forks source link

Newbie: Video block not available #235

Closed ghost closed 6 years ago

ghost commented 6 years ago

I have started with snowball and I am unable to find the "video" block image in the snowball toolbar. There is youtube block, but if I wanted to add a auto-playing self-hosted video, how do I achieve the same?

image

thomaspark commented 6 years ago

Hi @jagan-veeraraghavan, Snowball doesn't offer a block for self-hosted videos, but you should be able to accomplish this using the HTML block. Roughly, for the HTML field:

<video controls autoplay>
  <source src="../path/to/video.mp4" />
</video>

And for the CSS field:

video {
  width: 100%;
  max-height: 100%;
}
ghost commented 6 years ago

Thanks @thomaspark . The snowball home page images showed a video button. That got me curious about the video feature. Your solution works perfectly for me

thomaspark commented 6 years ago

Glad you were able to get it working. I believe the YouTube block used to be called Video in earlier versions of Snowball, so that's what you're seeing on the homepage.