Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/shiyiya/wordpress-plugin-oplayer/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
https://github.com/shiyiya/oplayer
https://wordpress.org/plugins/oplayer
Another HTML5 video player comes to WordPress.
[oplayer title="君の名は" src="https://cdn.jsdelivr.net/gh/shiyiya/QI-ABSL@master/o/君の名は.mp4" poster="https://cdn.jsdelivr.net/gh/shiyiya/QI-ABSL@master/o/poster.png" subtitle="https://cdn.jsdelivr.net/gh/shiyiya/QI-ABSL@master/o/君の名は-jp.srt" watermark="https://cdn.jsdelivr.net/gh/shiyiya/QI-ABSL@master/o/poster.png" thumbnails="https://cdn.jsdelivr.net/gh/shiyiya/QI-ABSL@master/o/thumbnails.jpg" thumbnailsCount="100" autoplay="1"]

Options
| name | shortcode | default |
|---|---|---|
| container | - | document.querySelector('.oplayer-{id}') |
| src | src | required |
| title | title | - |
| poster | poster | - |
| theme | theme | '#6668ab' |
| live | live | 0 |
| autoplay | autoplay | 0 |
| autopause | autopause | 1 |
| loop | loop | 0 |
| screenshot | screenshot | 0 |
| volume | volume | 0.8 |
| thumbnails | thumbnails | - |
| thumbnailsCount | thumbnailsCount | - |
| subtitle | subtitle | - |
| watermark | watermark | - |
Devolopment
docker-compose up