Linux 软件免费装
Banner图

PlayerJS

开发者 playerjs
更新时间 2023年10月16日 03:37
PHP版本: 5.2.4 及以上
WordPress版本: 4.9.8
版权: GPLv2 or later
版权网址: 版权信息

标签

audio player video player PlayerJS HTML5 player HLS player DASH player YouTube player Vimeo player

下载

2.2

详情介绍:

Build custom video / audio player on PlayerJS.com for FREE and place it on your website. Use simply [playerjs file="URL"] shortcode at the desired location in your page.

安装:

  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 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 editor or include [playerjs] shortcode on your website pages/posts manually. Below is the list of accepted parameters:
  5. file: path to the video (mostly MP4) / audio (mostly MP3) / HLS / DASH / YouTube / Vimeo / JSON playlist
  6. title: text inscription (optional)
  7. subtitle: path to .srt .ass .ssa or .vtt file (optional)
  8. poster: path to image (optional)
  9. thumbnails: path to thumbnails .vtt file (optional)
  10. width: player width in percentage (50%) or pixels (500), default 100% (optional)
  11. autoplay: 0/1 (optional)
  12. start: start playback from the specified second
  13. end: end playback on the specified second
  14. align: left, right, center (optional)
  15. margin: in pixels (optional)
All other settings can be configured in the builder. Sample shortcode: [playerjs file="//cdn.playerjs.com/x.mp4"]

屏幕截图:

  • Plugin settings

常见问题:

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 use playlists?

Sample shortcode with JSON playlist: [playerjs file="//site.com/json.txt"]

Where can i find documentation for all player features?

You can find complete documentation here:

How can i set the custom height of the player?

You can use option height: in shortcode (height:300), when aspect ratio is set to value container size.

更新日志:

2.1 2.2