Skip to content

Added support for mobile background image

Compare
Choose a tag to compare
@kanzelm3 kanzelm3 released this 10 Jun 16:24
· 21 commits to master since this release

Since mobile browsers (phones and tablets) do not autoplay videos and require the user to actually play the video. I have added support to instead show a background image on mobile browsers. By default, the directive will get the YouTube video's first thumbnail and display that as the background image, but you can control what image displays by using mobile-image attribute.