跳到内容

OS media – HTML5 Featured Video

v2.3

mario marino · 2013年11月4日 上架

For Featured video contents based on the latest HTML5 Video-js library (5.2.1). It works with local & remote media, Amazon S3, Youtube & Vimeo …

正在使用
10+
评分
5.0 / 5
累计下载
1 万
最近更新
2016年10月17日
2 条评价已测试到 4.6.30

贡献者

截图

General Options: Admin area for HTML5 Player
General Options: Admin area for HTML5 Player
Metabox area for single post/page
Metabox area for single post/page
Frontpage Twenty Fifteen Wordpress theme
Frontpage Twenty Fifteen Wordpress theme

OS-media allow streaming of mp4/webm/ogv video progressively through PHP. It works with all WP themes, but is designed specifically for OS-media theme, a Twenty Fourteen Child Theme that is able to properly handle the layout of Custom Post for Featured Videos.

DEMO ONLINE: http://openstream.tv/demo/

OS-media WP theme: http://www.mariomarino.eu/os-media-wordpress-theme/

You can insert multimedia content:

  • in normal post or page with the classic shortcodes added to the post textarea through control panel.
  • in Custom Post Type for “Featured Video”, a dedicated area where we have a single “Featured video” for each page (like WP Featured Images).

There are 5 ways to insert video:

  1. from local WP installation (after upload video files through FTP): you must place the PATH of this local video resource (for example: /opt/lampp/htdocs/wp/wp-content/uploads/video)in general settings and files list appears in file selector in each control panel of single post.
  2. from any file server or WP installation: you must place the URL (http://…) and files list appears in file selector.
  3. from Amazon S3 (Simple Storage Server) [files list appears in file selector],
  4. directly uploading (or selecting) files through WordPress media uploader (limited size: depends on the configuration of php and WP) [dedicated input for each format: mp4, webm, ogg]
  5. from the platform Youtube & Vimeo. [dedicated input]

NOTE: the way 1 is recommended if you need to hide the video URL and prevents users from easily downloading the source.

For OSmedia Featured video (Custom Post Type), if you don’t use Os-media theme you can insert the function Osmedia_video() in your theme. This content are also optimized for latest WP theme like Twenty Fifteen or Twenty Fourteen, automatically detected by this plugin, which loads the dedicated layout for CPT content. If your theme is not recognized, is loaded by default the file layout/osmedia_cpt.php, that you can edit and customize for display your featured video.

For normal post/page you can place Poster Image for video URL in shortcode (img=””).
In custom Post Field you can use the WP Featured Image, otherwise the plugin try to load image file from the same directory with the same name and .jpg extension.

Some configs parameters in Option settings are general config, not present in single-post settings, this one are effective for post already created (for example: “local video path”, or “player skin”). And some other config parameters for default setting that are overwritten by the same settings parameters present in single-post (for example: “width”, or “autoplay”).

List of all parameters of OS-media video:
http://www.mariomarino.eu/wp-content/uploads/2013/10/OSmedia_vars.pdf

Shortcode example:

[video file=”demo” fileurl="https://s3-eu-west-1.amazonaws.com/” img="http://.." youtube="KTRVYDwfDyU" width="640" height="360"]

You can customize you own Video-js skin player simply generating css file through this tool: http://codepen.io/heff/pen/EarCt.
After that upload this file in the plugin folder: player/videojs/skin. The file name should reflect the name of the main class of the css file (not including the extension .css).

More Info on my personal blog: http://www.mariomarino.eu/en/os-media-wordpress-video-plugin/

Credits:

IMPORTANT NOTE about old version (1.0):
The old featured video post create through old version of this plugin MUST be simply manually reloaded in Admin Area and, when appear the video data on the metabox form, click “Generate Shortcode” button and save post.
This because in the new version in normal post and page, video are displayed only through shortcode.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums