Replies: 2 comments 4 replies
-
I also wonder if some of the info for the HTML (web components) version is also applicable for React?
<vds-video poster="https://media-files.vidstack.io/poster.png">
<!-- Poster is shown while loading or if JS disabled. -->
<video poster="https://media-files.vidstack.io/poster-seo.png"></video>
</vds-video>
|
Beta Was this translation helpful? Give feedback.
-
Ah I see that this can be confusing. There is a poster usage example code snippet that shows it's set on
Yep it can be applied to React as well, in terms of setting the poster element on both the React |
Beta Was this translation helpful? Give feedback.
-
Poster in docs
I think it's great that there's this optimization and this explanation but I find it slightly confusing. In terms of what to do, and where to set the poster in practice. And perhaps the code example could be used to clarify this a bit more?
Does the above, means this (setting
poster
onVideo
):Or does it means this (setting
poster
onPoster
):I tried this last one,
poster
onPoster
and it didn't work, but I still wanted to double check what were the intentions.Happy to do a PR to clarify the docs
Beta Was this translation helpful? Give feedback.
All reactions