[WordPress] 外掛分享: WP YouTube Lyte

首頁外掛目錄 › WP YouTube Lyte
30,000+
安裝啟用
★★★★
4.8/5 分(206 則評價)
3 天前
最後更新
67%
問題解決
WordPress 6.0+ v1.7.30 上架:2010-05-21

內容簡介

WP YouTube Lyte 可以讓您透過插入響應式「輕量級 YouTube 嵌入」方式進行「懶加載」視頻。這些看起來和感覺像是正常的 YouTube 嵌入,但只有在被點擊時才呼叫「大型」YouTube 播放器,因此在偶爾嵌入 YouTube 並且在同一頁面上有多個 YouTube 視頻時,從而顯著減少下載大小和渲染時間,從而大大提高頁面性能。該插件可以設置緩存 YouTube 縮略圖到本地,從而提高性能和隱私。因此,LYTE 嵌入的 YouTube 視頻不需要向 YouTube 服務器發出請求,可能(我不是律師)有助於更好地符合 GDPR。

該插件會偵測正常的 YouTube 鏈接,接管 WordPress 核心的 oEmbed。或者,您可以使用「httpv」替代「http(s)」添加視頻或整個播放列表,或者在側邊欄中添加 Lyte 小部件,WP YouTube Lyte 將更換該鏈接為正確性能優化代碼。以下是一些示例:

httpv://www.youtube.com/watch?v=_SQkWbRublY(普通視頻嵌入)
httpv://youtu.be/_SQkWbRublY(使用 YouTube 短鏈接的視頻嵌入)
httpa://www.youtube.com/watch?v=_SQkWbRublY(僅音頻嵌入)
httpv://www.youtube.com/playlist?list=PLA486E741B25F8E00(播放列表嵌入)
httpv://www.youtube.com/watch?v=_SQkWbRublY#stepSize=-1(視頻播放器,大小比配置為默認值的要小一號)
httpv://www.youtube.com/watch?v=_SQkWbRublY?start=20&showinfo=0(視頻播放器,從20秒開始播放並且不顯示標題)

或使用短碼:

[lyte id='_SQkWbRublY' /]
[lyte id='_SQkWbRublY' audio='true' /]
[lyte id='A486E741B25F8E00' playlist='true' /]

WP YouTube Lyte 的主要目標是優化性能,但已經在最大程度上經過測試以實現瀏覽器兼容性(包括 iPad),同時關注可訪問性。 從版本1.2.0開始,lyte embeds 是完全響應式的,並且可以自動嵌入videoObject 微數據。該插件完全支持多語言,支持加泰羅尼亞語、荷蘭語、英語、法語、德語、希伯來語、羅馬尼亞語、西班牙語和斯洛文尼亞語。

歡迎提供反饋;請見faq中的信息進行錯誤報告/功能請求,並隨時在wordpress.org上評分和/或報告相容性。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.7.30) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP YouTube Lyte」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

WP YouTube Lyte allows you to “lazy load” your video’s, by inserting responsive “Lite YouTube Embeds”. These look and feel like normal embedded YouTube, but only call the “fat” YouTube-player when clicked on, thereby reducing download size & rendering time substantially when embedding YouTube occasionally and improving page performance dramatically when you’ve got multiple YouTube video’s on one and the same page. The plugin can be configured to cache YouTube thumbnails locally, improving both performance and privacy. As such LYTE embedded YouTube videos do not require requests to the YouTube servers, probably (I am not a lawyer) allowing for better GDPR-compliance.
The plugin picks up on normal YouTube links, taking over from WordPress core’s oEmbed. Alternatively you can add a YouTube-link for a video or an entire playlist with “httpv” instead of “http(s)” or add a Lyte widget to your sidebar and WP YouTube Lyte replaces that link with the correct performance-optimized code. Some examples:

httpv://www.youtube.com/watch?v=_SQkWbRublY (normal video embed)
httpv://youtu.be/_SQkWbRublY (video embed with youtube-shortlink)
httpa://www.youtube.com/watch?v=_SQkWbRublY (audio only embed)
httpv://www.youtube.com/playlist?list=PLA486E741B25F8E00 (playlist embed)
httpv://www.youtube.com/watch?v=_SQkWbRublY#stepSize=-1 (video player, one size smaller than what’s configured as default)
httpv://www.youtube.com/watch?v=_SQkWbRublY?start=20&showinfo=0 (video player, start playing at 20 seconds and don’t show title)

Or using shortcodes:
[lyte id='_SQkWbRublY' /]
[lyte id='_SQkWbRublY' audio='true' /]
[lyte id='A486E741B25F8E00' playlist='true' /]

WP YouTube Lyte has been written with optimal performance as primary goal, but has been tested for maximum browser-compatibility (iPad included) while keeping an eye on accessibility. Starting with version 1.2.0 lyte embeds are fully responsive and can automatically embed videoObject microdata as well. The plugin is fully multi-language, with support for Catalan, Dutch, English, French, German, Hebrew, Romanian, Spanish and Slovene.
Feedback is welcome; see info in the faq for bug reports/ feature requests and feel free to rate and/or report on compatibility on wordpress.org.

延伸相關外掛

文章
Filter
Mastodon