[WordPress] 外掛分享: Easy Video Player

首頁外掛目錄 › Easy Video Player
WordPress 外掛 Easy Video Player 的封面圖片
20,000+
安裝啟用
★★★★
4.2/5 分(57 則評價)
103 天前
最後更新
問題解決
WordPress 5.5+ v1.2.2.13 上架:2013-03-31

內容簡介

Easy Video Player 是一個易於使用的 WordPress 影片外掛程式,可展示您的影片。您可以嵌入自行架設的影片或使用直接連結外部架設的影片。

Easy Video Player 功能

嵌入 MP4 影片於您的網站
嵌入回應式影片,使使用手機裝置瀏覽時提供更好的使用者體驗
嵌入 HTML5 影片,與所有主要瀏覽器相容
嵌入具海報圖片的影片
嵌入具自動播放功能的影片
嵌入具循環播放功能的影片
嵌入具禁音啟用的影片
使用類別自訂影片播放器
嵌入使用 MediaElement 播放器或 WordPress 內建預設播放器的影片
嵌入影片於 AMP 頁面

Easy Video Player 擴充功能

MediaElement Skin 1

Easy Video Player 外掛程式使用方法

嵌入影片於經典編輯器

設定配置

設置此影片播放器外掛程式相當容易。安裝外掛程式後,只需導覽至「設定」選單,您將能夠配置一些選項。最重要的是只需要勾選「啟用 jQuery」選項。這將允許外掛程式使用 jQuery 函式庫。

嵌入影片的短碼

現在是時候最終嵌入影片短碼。要完成此動作,請建立新的文章/頁面,使用以下短碼:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4"]

這裡,url 是您需要以實際影片檔案 URL 取代的短碼參數。

影片自動播放

如果您要在頁面載入時開始播放某個影片,您可以將「自動播放」選項設置為「true」:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" autoplay="true"]

控制大小

預設情況下,播放器佔據內容區域的全寬。您可以輕鬆透過為其指定寬度來控制大小:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" width="640"]

高度會根據比例自動確定(詳細資訊請參閱「控制播放器比例」章節)。

控制播放器比例

播放器比例預設為「16:9」。您可以通過在短碼中指定不同的比例來覆蓋它:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" ratio="4:3"]

影片循環播放

如果您希望特定影片在結束時重新開始播放,您可以將「循環」選項設置為「true」:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" loop="true"]

影片播放器樣板

如果您想使用不同的影片播放器樣板,您可以在「樣板」參數中指定它:

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" template="mediaelement"]

預設情況下,媒體元素樣板僅在頁面載入時加載影片的「metadata」。您可以使用短碼中的 preload 參數將其設置為「auto」或「none」。

[evp_embed_video url="http://example.com/wp-content/uploads/videos/myvid.mp4" preload="auto" templa

外掛標籤

開發者團隊

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

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

原文外掛簡介

Easy Video Player is a user-friendly WordPress video plugin to showcase your videos. You can embed both self-hosted videos or videos that are externally hosted using direct links.
Easy Video Player Add-ons

MediaElement Skin 1
User Only Videos
Video Schema
Disable Right Click

Easy Video Player Features

Embed MP4 video into your website
Embed responsive video for a better user experience while viewing from a mobile device
Embed HTML5 video which are compatible with major browsers
Embed video with poster images
Embed video with autoplay if the device and browser support it
Embed video with loop
Embed video with muted enabled
Customize the video player using classes
Embed video using MediaElement player

Easy Video Player Plugin Usage

Embedding a Video in the Classic Editor

Settings Configuration
It’s pretty easy to set up this video player plugin. Once you have installed the plugin simply navigate to the Settings menu where you will be able to configure some options. Mostly you just to need check the “Enable jQuery” option. That will allow the plugin to make use of jQuery library.
Embedding Shortcodes for the Videos
Now it’s time to finally embed a video shortcode. To do this create a new post/page and use the following shortcode:
[evp_embed_video url="https://example.com/wp-content/uploads/videos/myvid.mp4"]

Here, url is a shortcode parameter that you need to replace with the actual URL of the video file.
Video Autoplay
If you want a particular video to start playing when the page loads, you can set the “autoplay” option to “true”:
[evp_embed_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" autoplay="true"]

Control Size
By default, the player takes up the full width of the content area. You can easily control the size by specifying a width for it:
[evp_embed_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" width="640"]

The height will be automatically determined based on the ratio (please see the “Control Player Ratio section” for details).
Control Player Ratio
You can override the default aspect ratio by specifying a different one in the shortcode:
[evp_embed_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" ratio="16:9"]

If the player does not support your specified aspect ratio it will load the default.
Video Loop
If you want a particular video to start playing again when it ends, you can set the “loop” option to “true”:
[evp_embed_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" loop="true"]

Video Player Template
If you want to use a different video player template, you can specify it in the “template” parameter:
[evp_embed_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" template="mediaelement"]

By default, the mediaelement template only loads the “metadata” of a video when the page loads. You can set it to “auto” or “none” with the preload parameter in the shortcode.
[evp_embed_video url="https://example.com/wp-content/uploads/videos/myvid.mp4" preload="auto" template="mediaelement"]

For detailed documentation please visit the WordPress video plugin page
Plugin Language Translation
If you are a non-English speaker please help translate Easy Video Player into your language.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon