Title: PlayerJS
Author: PlayerJS
Published: <strong>2018 年 11 月 22 日</strong>
Last modified: 2025 年 2 月 25 日

---

搜索插件

![](https://ps.w.org/playerjs/assets/banner-772x250.jpg?rev=1979095)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/playerjs/assets/icon-256x256.png?rev=1979095)

# PlayerJS

 作者：[PlayerJS](https://profiles.wordpress.org/playerjs/)

[下载](https://downloads.wordpress.org/plugin/playerjs.2.24.zip)

 * [详情](https://cn.wordpress.org/plugins/playerjs/#description)
 * [评价](https://cn.wordpress.org/plugins/playerjs/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/playerjs/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/playerjs/#developers)

 [支持](https://wordpress.org/support/plugin/playerjs/)

## 描述

Build custom video / audio player on [PlayerJS.com](https://playerjs.com) for FREE
and place it on your website.

## 屏幕截图

 * [[
 * Player shortcode
 * [[
 * Plugin settings

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/playerjs` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the `Plugins` screen in WordPress.
 3. Build your own player at [playerjs.com](https://playerjs.com) and replace the default
    file playerjs_default.js to yours or upload separately and change the URL on the
    Settings page of the plugin.
 4. Use the button PlayerJS in the WP 4 or simple place a [playerjs] shortcode in WP
    5. Below is the list of accepted parameters:

 * file: path to the video (mostly MP4) / audio (mostly MP3) / HLS / DASH / YouTube/
   Vimeo / JSON playlist
 * title: text inscription (optional)
 * subtitle: path to .srt .ass .ssa or .vtt file (optional)
 * poster: path to image (optional)
 * thumbnails: path to thumbnails .vtt file (optional)
 * width: player width in percentage (50%) or pixels (500), default 100% (optional)
 * autoplay: 0/1 (optional)
 * start: start playback from the specified second
 * end: end playback on the specified second
 * align: left, right, center (optional)
 * margin: in pixels (optional)

All other settings can be configured in the [builder](https://playerjs.com).

Sample shortcode:

    ```
    [playerjs file="//plrjs.com/x.mp4"]
    ```

## 常见问题

### How can i add quality selection?

Sample shortcode with quality selection:

    ```
    [playerjs file="[480]//site.com/480.mp4,[720]//site.com/720.mp4"]
    ```

### How can i add a protective watermark?

You can show in the player invisible username in a random place to protect against
screen recording. Enable [watermarks plugin](https://playerjs.com/docs/q=watermarks#wp)
in the builder, update your player and pass to shortcode watermark=1.

    ```
    [playerjs file="URL" watermark=1]
    ```

### How can i use playlists?

Sample shortcode with [JSON playlist](https://playerjs.com/docs/q=playlist):

    ```
    [playerjs file="[{'title':'1','file':'http://plrjs.com/x.mp4'},{'title':'2','file':'http://plrjs.com/x.mp4'}]"]
    ```

or

    ```
    [playerjs file="//site.com/json.txt"]
    ```

### Where can i find documentation for all player features?

You can find complete documentation here:
 * [Quality](https://playerjs.com/docs/search=quality)*
[Google Analytics](https://playerjs.com/docs/q=ga) * [Javascript API](https://playerjs.com/docs/search=api)*
[Playlist](https://playerjs.com/docs/q=playlist) * [Logo](https://playerjs.com/docs/q=customelements)*
[Aspect ratio](https://playerjs.com/docs/q=playersize) * [Playback](https://playerjs.com/docs/search=playback)*
[Audio tracks](https://playerjs.com/docs/q=audiotracks) * [Thumbnails](https://playerjs.com/docs/q=thumbnailsphpwebvtt)*
[Social sharing](https://playerjs.com/docs/search=share) * [YouTube](https://playerjs.com/docs/q=youtube)*
[Vimeo](https://playerjs.com/docs/q=vimeo) * [Watermarks](https://playerjs.com/docs/q=watermarks)*
[DASH](https://playerjs.com/docs/search=dash) * [HlS](https://playerjs.com/docs/search=hls)*
[Hotlink protection](https://playerjs.com/docs/q=encodingbase64) * [Combining multiple players into one](https://playerjs.com/docs/q=combine)

### How can i set the custom height of the player?

You can use option `height:` in shortcode (height:300), when [aspect ratio](https://playerjs.com/docs/q=playersize)
is set to value `container size`.

## 评价

![](https://secure.gravatar.com/avatar/cd2fa04c6c03fb5b68bdb618685e36cdc99ab94295e6073e42c85718ae8a4411?
s=60&d=retro&r=g)

### 󠀁[Amazing Service](https://wordpress.org/support/topic/amazing-service-82/)󠁿

 [admanp](https://profiles.wordpress.org/admanp/) 2025 年 6 月 13 日

Great and fast response. Player has a lot of good features!

![](https://secure.gravatar.com/avatar/648741bcfce408ef4a62f203f9b15533d47822b52e92f236ee99c45b0c77581c?
s=60&d=retro&r=g)

### 󠀁[Best HTML video player](https://wordpress.org/support/topic/best-html-video-player/)󠁿

 [junglevid](https://profiles.wordpress.org/junglevid/) 2024 年 7 月 8 日

Best HTML video player .Playlist and folder features save bandwidth . Several hundred
videos on one page with a size of tens of KB !

![](https://secure.gravatar.com/avatar/009476470eae118271cb209adfaaecd9f6d6c8bc74e81aa88c654c6a8caf9640?
s=60&d=retro&r=g)

### 󠀁[Super video plugins](https://wordpress.org/support/topic/super-video-plugins/)󠁿

 [wplike75](https://profiles.wordpress.org/wplike75/) 2022 年 10 月 30 日

Just to say wahooouuu, and thanks, for this fantastic plugins, easy, free, and we
can create and mod our plugins in the web site, super! Thank you.

![](https://secure.gravatar.com/avatar/d16574d52799fb89bbd2eebbfa9da24e48681eb30a27884e6bd6e5cbe7ce4be7?
s=60&d=retro&r=g)

### 󠀁[Отличный плеер](https://wordpress.org/support/topic/%d0%be%d1%82%d0%bb%d0%b8%d1%87%d0%bd%d1%8b%d0%b9-%d0%bf%d0%bb%d0%b5%d0%b5%d1%80/)󠁿

 [cowanmax](https://profiles.wordpress.org/cowanmax/) 2022 年 2 月 4 日

Использую в связке с корпоративным Wowza media server. Вставлять VOD на сайт – одно
удовольствие, вставлять лайф-стримы тоже! Теперь посетители не смотрят рекламу, 
как с Youtube и другими видеосервисами. Есть кучу, буквально КУЧА настроек плеера.
Сделано с умом! Разработчикам респект и развития проекта. Немного позже обязательно
соберемся с покупкой плеера.

![](https://secure.gravatar.com/avatar/cdc0ba25715b75062bead7cc927d54f726c5e04c457bbed03995f34d1807de6d?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-21897/)󠁿

 [neamati](https://profiles.wordpress.org/neamati/) 2019 年 5 月 22 日

Really help me on live streaming.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/playerjs/reviews/)

## 贡献者及开发者

「PlayerJS」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ PlayerJS ](https://profiles.wordpress.org/playerjs/)

「PlayerJS」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/playerjs/contributors)
为本插件所做的贡献。

[帮助将「PlayerJS」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/playerjs)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/playerjs/)，查看[SVN仓库](https://plugins.svn.wordpress.org/playerjs/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/playerjs/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/playerjs/)。

## 更新日志

#### 2.1

 * Default player script updated to the version 8.91

#### 2.2

 * Settings page and a special button PlayerJS for WP 4

#### 2.3

 * Minor changes for WP 5

#### 2.4

 * Fixed bugs

#### 2.5

 * Fixed bugs, default player updated

#### 2.6

 * Playlist JSON inside shortcode

#### 2.7

 * Fixed bugs, default player updated

#### 2.8

 * [Hotlink protection](https://playerjs.com/docs/q=encodingbase64) added

#### 2.9

 * [Watermark](https://playerjs.com/docs/q=watermarks#wp) support added, default
   player updated

#### 2.10

 * Fixed bugs, default player updated

#### 2.11 – 2.13

 * Fixed bugs, default player updated

#### 2.14

 * Fixed bug with Classic Editor (TinyMCE) button

#### 2.15 – 2.17

 * Fixed bugs, default player updated

#### 2.18

 * Time memorization fixed

#### 2.19

 * Added [audio/video tag replacement](https://playerjs.com/docs/q=replacetags)

#### 2.20-2.21

 * Bug fixed

## 额外信息

 *  版本 **2.24**
 *  最后更新：**1 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/playerjs/) 和 [Russian](https://ru.wordpress.org/plugins/playerjs/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/playerjs)
 * 标签
 * [audio player](https://cn.wordpress.org/plugins/tags/audio-player/)[HLS player](https://cn.wordpress.org/plugins/tags/hls-player/)
   [html5 player](https://cn.wordpress.org/plugins/tags/html5-player/)[video player](https://cn.wordpress.org/plugins/tags/video-player/)
 *  [高级视图](https://cn.wordpress.org/plugins/playerjs/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/playerjs/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/playerjs/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/playerjs/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/playerjs/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/playerjs/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/playerjs/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/playerjs/reviews/)

## 贡献者

 *   [ PlayerJS ](https://profiles.wordpress.org/playerjs/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/playerjs/)