外掛標籤
開發者團隊
原文外掛簡介
CarvFlow Video Library turns a list of YouTube and Vimeo links into a clean, searchable video library on any page.
Paste a link, and the title and thumbnail are filled in for you. Organise videos in categories, then add the Video Library block (or the [carvflow_video_library] shortcode) to a page. Visitors can search, filter, sort and page through the videos, and watch them in an accessible player window.
Want members-only videos, your own filters, view counts or spreadsheet import? See the optional CarvFlow Video Library Pro add-on.
No video player is loaded until a visitor clicks a video, so pages stay light. By default the thumbnails are loaded from YouTube or Vimeo, which means visitors’ browsers contact those image servers when the library is shown; turn off remote thumbnails under Videos > Settings to use images from your Media Library instead, so nothing is loaded from YouTube or Vimeo until a video is clicked.
Features
YouTube (including Shorts and live links) and Vimeo (including private links with a hash).
Automatic title and thumbnail, and the duration for Vimeo.
Setup wizard: choose the layout, colour, cards and quick filters, and create the library page in a couple of minutes.
A familiar video-platform look in your own colour: rounded thumbnails with badge and duration, publish date under each title, pill search and quick filters, all tinted with the accent colour you choose.
A “New” label on recent videos (choose for how many days).
Video Library block with live preview and all options in the sidebar.
Instant search across titles, descriptions and categories; press / to jump to the search box.
Filters above the videos or in a sticky sidebar.
Category filter with sub-categories, plus quick filter buttons: choose which ones appear and in which order.
Choose what the thumbnail badge shows, or hide it.
Sorting by newest, oldest or title.
Numbered pages or a “Show more” button, always loaded from the server: the browser never loads the whole library at once.
Shareable links: “Copy link” in the player opens that exact video for whoever receives it.
Choose the number of columns, or let the grid adapt automatically.
Accessible player window with keyboard support, focus management and an optional description under the video.
Mobile filter window and sticky search bar.
YouTube privacy-enhanced mode (youtube-nocookie.com).
Optional remote thumbnails, or use images from your Media Library.
A video list built for large libraries: big thumbnails, filters by category and platform, and shortcuts to videos without a category, without a duration or with a broken link, and a bulk action to refresh thumbnails and durations from YouTube/Vimeo.
Let editors manage videos with one setting.
Works with page caching, including pages cached for a long time.
Developer friendly: templates can be overridden in the theme and an extension API is documented.
Usage
Go to Videos > Add New, paste a YouTube or Vimeo link and publish.
Optionally create Video Categories and assign them.
Edit a page and add the Video Library block.
Shortcode examples for classic content:
[carvflow_video_library]
[carvflow_video_library category="training" columns="3"]
[carvflow_video_library show_filters="false" columns="4"]
All options are listed under Videos > How to use.
CarvFlow Video Library Pro
Need more? CarvFlow Video Library Pro is an optional add-on that works on top of this free plugin:
Members-only videos: visitors who are not logged in see a lock and a “Log in to watch” button.
Your own filters, for example Speaker, Topic or Series.
“Up next” videos under the player, so visitors keep watching.
View counts on the cards and a “Most viewed” order.
Spreadsheet import and export to add or update many videos at once.
Video structured data for search engines.
Advanced colours for every part of the library.
Get CarvFlow Video Library Pro
The free plugin is complete on its own, does not limit the number of videos and has nothing locked. The Pro add-on is sold separately on carvflow.com.
External services
This plugin connects to YouTube and Vimeo, because those services host and stream the videos chosen by the site administrator.
When an administrator adds or checks a video, the website requests public information about that video (title, thumbnail and, for Vimeo, duration) from the provider’s oEmbed service: https://www.youtube.com/oembed or https://vimeo.com/api/oembed.json. The video link and standard HTTP request information are sent.
When remote thumbnails are enabled (default), visitors’ browsers load thumbnail images from YouTube (i.ytimg.com) or Vimeo (i.vimeocdn.com). This can be turned off under Videos > Settings.
When a visitor clicks a video, the provider’s player is loaded from www.youtube-nocookie.com (or www.youtube.com if privacy mode is turned off) or player.vimeo.com.
YouTube terms of service: https://www.youtube.com/t/terms
Google privacy policy: https://policies.google.com/privacy
Vimeo terms of service: https://vimeo.com/terms
Vimeo privacy policy: https://vimeo.com/privacy
Development source
All JavaScript and CSS files are shipped as human-readable source in assets/js/ and assets/css/. Each .min.js / .min.css file is an identical copy of its readable source file; no npm, bundler, transpiler or minifier is used. The block editor script (assets/js/block.js) uses the global wp packages and needs no build step.
