Skip to content

Commit

Permalink
Merge pull request #6 from cbirdsong/main
Browse files Browse the repository at this point in the history
Increase poster image quality to maximum
  • Loading branch information
mrwweb authored Jul 10, 2024
2 parents 7482c50 + 79d5ca8 commit 301298c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enhanced-embed-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function replace_youtube_embed_with_web_component( $content, $block ) {
$content = sprintf(
'<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube">
<div class="wp-block-embed__wrapper">
<lite-youtube videoid="%1$s" videoplay="%2$s" videoStartAt="%3$d" posterloading="lazy" nocookie>
<lite-youtube videoid="%1$s" videoplay="%2$s" videoStartAt="%3$d" posterquality="maxresdefault" posterloading="lazy" nocookie>
<a href="%4$s" class="lite-youtube-fallback" target="_blank" rel="noreferrer noopenner">Watch "%5$s" on YouTube</a>
</lite-youtube>
</div>
Expand Down

0 comments on commit 301298c

Please sign in to comment.