{"id":416811,"date":"2025-01-02T08:00:00","date_gmt":"2025-01-02T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/vital-video-block\/"},"modified":"2025-01-08T16:36:00","modified_gmt":"2025-01-08T16:36:00","slug":"vital-video-block","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/vital-video-block\/","title":{"rendered":"Vital Video Block"},"content":{"rendered":"<p>Vital Video is a WordPress block plugin designed to improve Core Web Vitals performance when displaying YouTube videos.<\/p>\n<p>Instead of traditional embedding, it provides a lightweight, performance-optimized solution that first loads a clickable video thumbnail.<\/p>\n<p>The Vital Video Block doesn\u2019t play videos in the WordPress editor. It\u2019s designed to prioritize performance and user experience on your frontend. To test video behavior, simply preview your post or page.<\/p>\n<h3>Features<\/h3>\n<ul>\n<li>Performance-first YouTube video display.  <\/li>\n<li>Automatic video thumbnail and title retrieval.  <\/li>\n<li>WebP image support for faster image loading.  <\/li>\n<li>Customizable aspect ratios (4:3 and 16:9).  <\/li>\n<li>Displays the video title in the image.  <\/li>\n<li>Multiple thumbnail quality options.  <\/li>\n<li>Minimal initial page load impact.  <\/li>\n<li>Option to disable WebP images if unavailable.  <\/li>\n<li>Advanced video playback controls.  <\/li>\n<li>Uses YouTube\u2019s no-cookie thumbnail service.  <\/li>\n<li>Respects modern browser autoplay policies.  <\/li>\n<li>Alt text matches the video title.<\/li>\n<li>Thumbnail dimensions set based on selected image size:\n<ul>\n<li>HQ (480\u00d7320): Default size  <\/li>\n<li>SD (640\u00d7480): Standard size  <\/li>\n<li>MAX (1280\u00d7720): Highest available resolution<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Vital Video Settings<\/h3>\n<ul>\n<li><strong>Aspect Ratio<\/strong>: Choose between 16:9 and 4:3.  <\/li>\n<li><strong>Mute Toggle<\/strong>: Control video playback behavior.  <\/li>\n<li><strong>Thumbnail Quality<\/strong>: Select from High, Standard, or Maximum resolution.  <\/li>\n<li><strong>Disable WebP<\/strong>: Turn off WebP usage if unavailable.<\/li>\n<\/ul>\n<h3>Mute Toggle<\/h3>\n<p>The Mute Toggle feature is designed primarily for mobile devices, adhering to browser autoplay policies.<\/p>\n<p><strong>Mute Toggle Off (Sound On):<\/strong><\/p>\n<p>Videos require two clicks to start playing:<\/p>\n<ol>\n<li>The first click loads the video.  <\/li>\n<li>The second click begins playback. Ideal for maintaining user control and preventing unexpected audio.<\/li>\n<\/ol>\n<p><strong>Mute Toggle On (Sound Off):<\/strong><\/p>\n<ul>\n<li>Videos play with a single click.  <\/li>\n<li>Automatically starts muted.  <\/li>\n<li>Perfect for situations where immediate video playback is desired.  <\/li>\n<li>Complies with browser autoplay restrictions.<\/li>\n<\/ul>\n<h3>Disable WebP Images<\/h3>\n<ul>\n<li><strong>WebP is enabled by default.<\/strong> Most thumbnails will use the WebP format.  <\/li>\n<li>However, if you encounter a dummy placeholder image, try selecting a different thumbnail size to see if another WebP version exists.  <\/li>\n<li>If no WebP images are available, you can enable the \u201cDisable WebP Images\u201d option as a last resort. This \u2013 will use fallback formats like JPG instead.<\/li>\n<\/ul>\n<p><em>Only use \u201cDisable WebP Images\u201d when absolutely necessary!<\/em><\/p>\n<h3>External Services<\/h3>\n<p>This plugin connects to YouTube\u2019s services to embed videos and retrieve video information:<\/p>\n<p><strong>YouTube Video Service:<\/strong><\/p>\n<ul>\n<li>The plugin connects to YouTube\u2019s embed service (youtube-nocookie.com) to display videos<\/li>\n<li>When a video is played, it loads the video player from YouTube\u2019s servers<\/li>\n<li>YouTube\u2019s terms of service: https:\/\/www.youtube.com\/static?template=terms<\/li>\n<li>YouTube\u2019s privacy policy: https:\/\/policies.google.com\/privacy<\/li>\n<\/ul>\n<p><strong>YouTube oEmbed API:<\/strong><\/p>\n<ul>\n<li>Used to fetch video titles when adding videos to your content<\/li>\n<li>Sends the YouTube video ID to retrieve the video title<\/li>\n<li>API documentation: https:\/\/developers.google.com\/youtube\/v3\/docs\/videos<\/li>\n<\/ul>\n<p><strong>YouTube Thumbnail Service:<\/strong><\/p>\n<ul>\n<li>Retrieves video thumbnail images from i.ytimg.com<\/li>\n<li>Only loads thumbnails for videos you\u2019ve embedded<\/li>\n<li>No personal data is sent to this service<\/li>\n<\/ul>\n<p><strong>Note:<\/strong> This plugin uses YouTube\u2019s privacy-enhanced mode by default, which helps protect your visitors\u2019 privacy by not setting cookies until the video is played.<\/p>\n<h3>Contributing<\/h3>\n<p>Contributions are welcome! You can support Vital Video in various ways:<\/p>\n<ul>\n<li>Write about the plugin on your blog or share it on social media.  <\/li>\n<li><a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/vital-video-block\/\" rel=\"nofollow ugc\">Translate the plugin into your language<\/a> using your WordPress.org account.  <\/li>\n<li><a href=\"https:\/\/wordpress.org\/support\/plugin\/vital-video-block\/reviews\/#new-post\" rel=\"ugc\">Review the plugin here on WordPress.org<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A YouTube block optimized for performance, allowing you to embed YouTube videos without harming your Core Web Vitals.<\/p>\n","protected":false},"author":65,"featured_media":416812,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Vital Video Block - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"A YouTube block optimized for performance, allowing you to embed YouTube videos without harming your Core Web Vitals."},"footnotes":""},"categories":[1],"tags":[288,64,98,21409,189],"class_list":["post-416811","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-block","tag-performance","tag-video","tag-web-vitals","tag-youtube"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/416811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=416811"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/416811\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/416812"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=416811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=416811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=416811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}