-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support of poster image for video block is missing #4837
Comments
For now, lets close this as the cover image block stands on it's own. If we were going to add video we would probably have another cover video block. I don't think though that's something we're considering right now for version one. It could be an awesome plugin block though for someone to make. |
@karmatosed I realize my wording was wrong. I wanted to say the Poster Image is missing. Here's a screenshot taken when Gutenberg is disabled. When Gutenberg is enabled, this feature is missing. |
Ah! Thanks for the clarification. |
This will also be great to support this because of the mobile apps, WordPress iOS editor uses the poster image to represent the video in the editor. This allows us to show something to the users without waiting to get a frame from the video source. |
@jorgefilipecosta or @danielbachhuber, any hints on how to get the poster image from the media object after the upload is done? I'd like to help get it solved as this is one of the last blockers to have WordPress mobile apps to work with Gutenberg without those annoying compatibility issues. |
@gziolo so if you are using VideoPress (trough Jetpack) you can query the VideoPress API and get an thumbnail URL to use. On WordPress.org I don't know if there is any standard mechanism to get a thumbnail. Meanwhile I also pushed a PR on Aztec to allow to display videos correctly even when a poster image is not defined. |
Initially, maybe all we need is just an attribute which is able to recognize this poster so it wouldn't break if you open it on mobile and then back on the web. I think it needs to work both ways. |
@gziolo To clarify existing behavior, the WordPress Classic Editor inserts a
Once the shortcode is within the post, there's an Edit icon you can use to get to the poster image screen: The poster image is only stored as an attribute on the shortcode, not within the database: Gutenberg will need to support Hope this helps clarify. Related #7501 |
Sorry @gziolo I missed your ping. I think in Gutenberg the best way to have a poster image is a button on the video block toolbar that allows selecting one from the media gallery plus an inspector UI that allows previewing it or even drag & drop a post image. As @danielbachhuber referred poster image is just a property of the shortcode where it is used it is not stored in the database and the same video may have different poster images in different places. |
At the moment, there's no option to set the
coverposter image for a video.Tested with Gutenberg 2.1
The text was updated successfully, but these errors were encountered: