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.
- Upload the plugin files to the
/wp-content/plugins/playerjs
directory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the
Plugins
screen in WordPress.
- 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.
-
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:
-
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.
Sample shortcode:
[playerjs file="//cdn.playerjs.com/x.mp4"]