[WordPress] 外掛分享: Simple YouTube Embed

首頁外掛目錄 › Simple YouTube Embed
5,000+
安裝啟用
★★★★
4.2/5 分(15 則評價)
335 天前
最後更新
問題解決
WordPress 3.0+ v1.1.0.5 上架:2014-07-16

內容簡介

Simple YouTube Embed 外掛是在 WordPress 中嵌入 YouTube 影片最簡單的方法。此外掛延伸了預設的 YouTube 影片嵌入,加入了進階的播放器參數。

與其他 YouTube 外掛不同的是,並不會用 JavaScript/HTML 代碼取代頁面上已有的影片嵌入代碼。使用 JavaScript 載入影片對於影片 SEO 的效益並不大,因為搜尋引擎爬蟲只會看到一些代碼而非實際的影片物件。

Simple YouTube Embed 的使用相當容易,因為無需進行任何設置,它使用 oEmbed API,因此您的影片會自動適應並提供所有 WordPress 核心 YouTube 嵌入所提供的所有好處。即使您選擇停用此外掛,您網站上的 YouTube 影片仍然可以繼續運作。

功能

漂亮的 YouTube 影片嵌入。
從您的 YouTube 頻道在 WordPress 中嵌入影片。
可自適應並行動裝置友善。
正確的 YouTube 影片嵌入,並不需要額外的 JavaScript 代碼。
無須任何設置即可使用。
不需要使用 YouTube API 金鑰。
使用 YouTube 區塊將 YouTube 影片嵌入 WordPress。
自動播放影片。
啟用/停用當影片結束時顯示建議的其他影片。
啟用/停用播放器控制。
啟用/停用影片資訊。
啟用/停用全螢幕。
在 YouTube 播放器的影片進度條中啟用白色。
停用播放器中的鍵盤控制。
指定播放器在何時停止撥放該影片。
指定播放器在何時開始播放該影片。
防止 YouTube 的商標顯示在控制條中。

Simple YouTube Embed 的擴充功能

YouTube 進階參數

如何在 WordPress 中使用 YouTube 嵌入外掛?

建立一篇新的文章/頁面,並加入一個 YouTube 區塊。將 YouTube 影片的網址複製並貼上。例如:

http://www.youtube.com/watch?v=Vpg9yizPP_g

YouTube 影片自動播放

為了自動播放影片,您可以在您的 YouTube 網址中加入「autoplay=1」。

http://www.youtube.com/watch?v=Vpg9yizPP_g&autoplay=1

相關 YouTube 影片

如果您不想顯示相關的影片,您可以在 YouTube 網址中加入「rel=0」。

http://www.youtube.com/watch?v=Vpg9yizPP_g&rel=0

YouTube 影片控制項

如果您不想顯示播放器控制項,您可以在 YouTube 網址中加入「controls=0」。

http://www.youtube.com/watch?v=Vpg9yizPP_g&controls=0

YouTube 影片全螢幕

如果您不想在播放器中顯示全螢幕選項,您可以在 YouTube 網址中加入「fs=0」。

http://www.youtube.com/watch?v=Vpg9yizPP_g&fs=0

YouTube 影片播放清單

如果您想將影片轉成單一影片播放清單,您可以在 YouTube 網址中加入「playlist=VIDEO_ID」。

http://www.youtube.com/watch?v=Vpg9yizPP_g&playlist=Vpg9yizPP_g<h3>YouTube 進階參數</h3>

使用進階參數擴充功能,您可以在 YouTube 影片中使用其他進階參數。

color

此參數指定在播放器中要使用的顏色。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Simple YouTube Embed plugin is the easiest way to embed YouTube videos in WordPress. This plugin extends the default YouTube embed with advanced player parameters.

Unlike other YouTube plugins, It doesn’t replace your on-page video embed code with JavaScript/HTML code. Loading a video with JavaScript doesn’t provide any video SEO benefit as a search engine crawler will only see some code instead of the actual video object.
Simple YouTube Embed is easy to use because there is no setting to configure. It uses the oEmbed API so your videos will be responsive and provide all the benefits that core WordPress YouTube embed has to offer. YouTube videos on your website will continue to work even if you choose to deactivate the plugin.
Features

Responsive and mobile friendly.
Proper YouTube video embed with no additional JavaScript code.
No setting to configure. Install, activate and start using it.
No YouTube API key needed.
Embed YouTube videos in WordPress with the YouTube block.
Automatically play a video.
Enable/Disable display of suggested videos when the video finishes.
Enable/Disable player controls.
Enable/Disable fullscreen.
Mute a YouTube Video.

Simple YouTube Embed Extensions

YouTube Advanced Parameters

How to Use the YouTube Embed Plugin in WordPress
Create a new post/page and add a YouTube block. Copy and paste the YouTube video URL into it. For example:

YouTube Video Autoplay
In order to automatically play a video you can add “autoplay=1” to your YouTube URL.

Related YouTube Videos
In order to disable related videos from showing you can add “rel=0” to your YouTube URL.

YouTube Video Controls
If you do not want to show player controls you can add “controls=0” to your YouTube URL.

YouTube Video Fullscreen
If you do not want to allow fullscreen option in the player you can add “fs=0” to your YouTube URL.

YouTube Video Mute
To start a video in the muted state you can add “mute=1” to your YouTube URL.

YouTube Video Playlist
If you want to turn a video into a single-video playlist you can add “playlist=VIDEO_ID” to your YouTube URL.

YouTube Video IV Load Policy
To not show video annotations by default you can add “iv_load_policy=3” to your YouTube URL.

Video annotations are shown by default.
YouTube Advanced Parameters
With the Advanced Parameters extension you can use additional advanced parameters in your YouTube videos.
color
This parameter specifies the color that will be used in the player’s video progress bar to highlight the amount of the video that the viewer has already seen.

Valid parameter values are red and white, and, by default, the player uses the color red in the video progress bar.
Note: Setting the color parameter to white will disable the modestbranding option.
disablekb
Setting this parameter’s value to 1 causes the player to not respond to keyboard controls. The default value is 0.

end
This parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing the video. The parameter value is a positive integer.

The time is measured from the beginning of the video and not from the value of the start player parameter.
start
This parameter causes the player to begin playing the video at the given number of seconds from the start of the video. The parameter value is a positive integer.

loop
This parameter causes the video to play repeatedly. The parameter value is a positive integer (e.g. loop=”1″).
In order for the loop feature to work, the video needs to be turned into a single-video playlist as well.

For documentation please visit the YouTube plugin page

延伸相關外掛

文章
Filter
Apply Filters
Mastodon