How can i use an embedded youtube/vimeo video without a preview thumbnail/element? #1115
Unanswered
JonathanLouw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to implement embedded YouTube and Vimeo videos using the Splide.js video extension. However, I would like to know if there is a way to turn off the preview image. Currently, the slide appears blank until I click it, after which the video starts playing.
For my current implementation, I do not have preview thumbnails available that I can display. While it is easy enough to fetch thumbnails for YouTube videos, it is not as easy for Vimeo or hosted files that use the HTML video player. Ideally, I would like to be able to have a "noPreview" option and just show the embedded video player in the slide without any preview or overlay element to trigger playing the video.
My current workaround has been to enable autoplay and then instantly pause the videos where possible, which is really flaky to manage. Is there an option I am missing somewhere to turn off the preview image?
Beta Was this translation helpful? Give feedback.
All reactions