
內容簡介
以下是特點:
能夠直接在頁面、文章或您自己的自訂文章類型中添加一個或多個視頻,使用視頻 URL(而不是嵌入代碼)或 ID 和簡碼。目前支持 YouTube 和 Vimeo,分別使用 [responsive_youtube] 和 [responsive_vimeo] 簡碼。
完全響應式,因此視頻的視口將填充包含區域的寬度並根據屏幕大小進行縮放。不需要設置寬度和高度,只需設置您內容所在的 div 的寬度即可。
YouTube 視頻有一個簡碼屬性,可讓您打開或關閉「相關視頻」。「相關視頻」是在視頻播放完成後平鋪視口的鏈接。
YouTube 視頻還支持淺色和深色主題、自動播放、showinfo 和適度的品牌(刪除大多數 YouTube 品牌形象)。
Vimeo 視頻可以關閉視頻人像、標題和作者署名。
全面的設置屏幕,說明了所有選項並顯示簡碼的句法。
使用示例:
對於 YouTube 視頻,您可以指定視頻的完整 URL 或僅唯一的視頻 ID 或 YouTube 共享或嵌入 URL,例如:
[responsive_youtube http://www.youtube.com/watch?v=NbCr0UyoFJA ]
[responsive_youtube NbCr0UyoFJA]
[responsive_youtube https://youtu.be//NbCr0UyoFJA ]
[responsive_youtube https://www.youtube.com/embed/NbCr0UyoFJA ]
如果您想指定是否要顯示「相關視頻」,則可以在簡碼語法中使用「rel」或「norel」參數,例如:
[responsive_youtube NbCr0UyoFJA norel]
[responsive_youtube NbCr0UyoFJA rel]
rel 和 norel 標記將僅覆蓋該特定視頻的插件設置屏幕中設置的內容。
同樣,對於 Vimeo 視頻,您可以使用完整的視頻播放器 URL 或僅視頻 ID,例如:
[responsive_vimeo https://vimeo.com/29506088 ]
[responsive_vimeo 29506088]
在插件本身的設置屏幕中,有更完整的簡碼語法處理方式。
要求
WordPress 3.0+
貢獻
使用匿名 SVN 獲取當前樹幹副本,或對當前安裝進行修補,然後將修補程序發送給我以供考慮。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Features Include:
The ability to add one or more videos directly in to a page, post or any of your own custom post types using the video URL (not the embed code) or ID and a short code. Currently YouTube and Vimeo are supported, using the [responsive_youtube] and [responsive_vimeo] shortcodes, respectively.
Fully responsive so the video’s viewport will fill the width of the containing area and scale depending on screen size. No need to set a width and height, just set the width of the div your content sits in.
YouTube videos have a shortcode attribute that lets you turn “related videos” on or off. “Related Videos” are the links that tile across the viewport when a video has completed playing.
YouTube videos also support light and dark themes, autoplaying, showinfo, and modest branding (which removes most YouTube brand imagery).
Vimeo videos can have the video portrait, title, and byline shut off.
A comprehensive settings screen which explains all the options and shows you the syntax of the shortcodes.
Example Usage:
For a YouTube video, you can specify either full URL to the video or just the unique video ID, or the YouTube sharing or embed URLs, like this:
[responsive_youtube http://www.youtube.com/watch?v=NbCr0UyoFJA ]
[responsive_youtube NbCr0UyoFJA]
[responsive_youtube https://youtu.be//NbCr0UyoFJA ]
[responsive_youtube https://www.youtube.com/embed/NbCr0UyoFJA ]
And if you want to specify whether or not you’d like the “related videos” to display, you can use the “rel” or “norel” parameters in the shortcode syntax, like this:
[responsive_youtube NbCr0UyoFJA norel]
[responsive_youtube NbCr0UyoFJA rel]
The rel and norel tags will override whatever you have set in the plugin settings screen for that specific video only.
Similarly, for a Vimeo video, you can use the full video player URL or just the video ID, like this:
[responsive_vimeo https://vimeo.com/29506088 ]
[responsive_vimeo 29506088]
There is a more complete treatment of the shortcode syntax in the settings screen of the plugin itself.
Requirements
WordPress 3.0 +
Contributing
Use anonymous svn to get a current trunk copy, or build a patch against your current install, then email the patch to me for consideration.
