plyr
plyr copied to clipboard
Custom poster for providers (YouTube and Vimeo)
Current behaviour(s):
- HTML5 video can use custom posters via the
poster
property. - YouTube and Vimeo uses their own posters
- Setting the poster with
player.poster = ...
works for any video format (HTML5, YouTube or Vimeo), but it can't be done directly after creating the instance due to the internal handling being async (it has to verify the url works to prevent a black element). Setting it too soon leads to a race condition. Ex: http://jsfiddle.net/fgegfjp7/1/
Suggested improvements
- [x] It should be possible to set the poster directly after creating the instance without worrying about any race conditions.
- [ ] It should be possible to set the poster in youtube and vimeo via a property in the options or on the element.
What's the status of this issue? Are you working on this? what needs to be done to close it?
Also curious about this one. I've been using the ready
event which seems to be working, but a parameter would definitely be useful.
Well it's been 4 years now, what's the status ^_^