[WordPress] 外掛分享: External “Video for Everybody”

首頁外掛目錄 › External "Video for Everybody"
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
50+
安裝啟用
尚無評分
2934 天前
最後更新
問題解決
WordPress 2.8+ v2.1.1 上架:2010-03-10

內容簡介

重要提示:此外掛專門用於操作存儲於 WordPress 網站外的媒體文件。它不支援媒體庫,也無法建立媒體文件。

「外部『為所有人提供的視頻』」是一個 WordPress 外掛,可用於在網站上顯示視頻。在頁面中輸入簡單的短碼,外掛會生成供媒體播放的 HTML。支援 HTML5 標籤的瀏覽器會顯示 MPEG / H.264(.mp4)文件、VP8 / webm(.webm)文件或 Ogg / Theora(.ogv)文件。其他瀏覽器可以使用 Flash 播放 .mp4 文件。在所有情況下,標記都包含下載媒體文件的鏈接。HTML 在不多變的情況下直接從「為所有人提供的視頻」模板中生成。詳細信息請參閱該網站。

用戶可以選擇使用 VideoJS JavaScript庫,將其視頻配備具有全屏選項的吸引人的控件集。

此外掛不適用於所有人,即使視頻的主題可能適用於所有人。如果我沒有自己的外掛,我可能會使用 Pavel Soukenik 的可下降式 HTML5 音頻和視頻外掛。我的外掛使用和遵循「為所有人提供的視頻」方法。我還提供一個選項頁面,您可以在其中定義整個網站的默認路徑和尺寸。默認值可以在任何特定的短碼中被覆蓋,但是如果大多數視頻都存儲在同一地方並且具有一致的尺寸,則整個網站的默認值使短碼保持簡單。 Soukenik 的短碼讓您對播放選項進行更多控制。

重要提示:大多數自動緩衝問題已解決,但有些較舊的瀏覽器和版本支援自動緩衝偏差。根據您在單個頁面上提供的電影數量以及其大小,自動緩衝可能會顯著減慢客戶端瀏覽器的速度,並且還可能影響您的帶寬。

有關 HTML5 中自動緩衝的討論請參閱:http://daringfireball.net/2009/12/html5_video_unusable

使用方法:

最小短碼格式為:
[external-vfe name="VIDEO"]

其中 VIDEO 是您的視頻簡單名稱(不帶任何文件擴展名)。

name 參數是唯一必填屬性。其他可選屬性包括:

- 寬度(以像素為單位)
- 高度(以像素為單位)
- path(您存儲視頻文件的文件夾的 URL)
- query(在 URL 中跟隨文件名的查詢;應以「?」開頭)
- include_poster(將海報屬性包含在視頻標記中,設置為「true」)
- webm_download(在下載列表中包含指向 webm 文件的鏈接)
- poster_extension(png、jpg 或 gif)
- swf_file(您的 Flash 播放器地址)
- vjs(設置為「true」以提供具有全屏選項的吸引人的視頻控制)
- file_detector(嘗試檢測遠程文件,如果為「true」)
- access_cookie(如果需要簡單的 cookie 來訪問遠程文件)

上述所有內容也可以在選項頁面(Media > External VfE)上設置為默認值。

選項頁面還包括兩個無法替換單個視頻的參數。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1.1) 或搜尋安裝

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

原文外掛簡介

Important: This plugin is designed to operate on media files hosted
outside your WordPress site. It does not integrate with the Media library,
and it does not create the media files.
External “Video for Everybody” is a WordPress plugin that you can use to show
videos on your WordPress site. You enter a simple shortcode on your page, and
the plugin generates the HTML to deliver the media. Browsers that understand
the HTML5 tag will display MPEG/H.264 (.mp4) files, VP8/webm (.webm), or Ogg/Theora (.ogv) files. Other browsers can use Flash to play the .mp4. In all cases, the
markup includes links to download the media files. The HTML comes with
only minor variations straight from the Video for
Everybody model. See that site for fuller details.
Users can optionally use the
VideoJS JavaScript library to outfit their videos
with an attractive set of controls that includes a full screen option.
This plugin is not for everybody, even if the video tries to be. If I were not
writing my own plugin, I would probably be using the Degradable HTML5 audio
and video Plugin by Pavel Soukenik. My plugin uses and will follow the Video for
Everybody
approach. I also offer an options page where you can define site-wide default paths and dimensions. The defaults can be overridden in any particular shortcode, but if most of your video resides in the same place and has consistent dimensions, site-wide defaults keep the shortcodes simple. Soukenik’s
shortcodes give you more control over playback options.
Important: Most autobuffering problems have been settled, but
preloading (autobuffering) preferences are supported unevenly in some
older browers and versions of browsers. Depending on how many movies you
serve on a single page, and on how large they are, autobuffering can
significantly slow your clients’ browsers, and it can also hit your bandwidth.
For a discussion of autobuffering in html5 see:
http://daringfireball.net/2009/12/html5_video_unusable
Usage
A minimal shortcode takes the form

[external-vfe name="VIDEO"]

where VIDEO stands for the simple name of your video (without any file
extension).
name is the only required attribute. Optional attributes are:

width (in pixels)
height (in pixels)
path (URL to the folder where you host your video files)
query (to follow the file name in the URL; should start with “?”)
include_poster (set to “true” to include a poster attribute in the video tag)
webm_download (include a link to a webm file in the list of downloads)
poster_extension (png, jpg, or gif)
swf_file (The address to your Flash player)
vjs (set to “true” to provide attractive video controls with full screen option)
file_detector (try to detect remote files if “true”)
access_cookie (if you need a simple cookie to access the remote files)

All of the above can also be set as defaults on the options page under:
Media > External VfE
The options page also includes two parameters that cannot be overridden for
an individual video:

the ability to disable VideoJS so that the JavaScript and the style sheet will not load at all
the option to disable the built-in style sheet

See the plugin home page for more details:
http://open.pages.kevinwiliarty.com/external-video-for-everybody/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon