on-internet
← Community

Using PLYR for Youtube videos - poster image?

Stack Overflow ·

I am using Plyr (https://github.com/sampotts/plyr) to play Youtube videos inline. But i now want to add a poster to the player, so i can use a thumbnail for the video, before it plays. Plyr supports this, but i can not get it to work. I am currently using Plyr in its most simple form: Youtube video: <div data-type="youtube" data-video-id="bTqVqk7FSmY"></div> Initialize Plyr: <script>plyr.setup();</script> Thats it. How can i get the above snippet to show a poster for "/myposter.png"?

Comments

Sign in or sign up to comment and upvote.

No comments yet.