
Improves video capabilities for wordpress, stores progress and adds video playlist features.
Better Video & Playlist adds the two things the native HTML5 player lacks: resume where you stopped and a playlist that keeps playing.
Add a video with the normal WordPress video block or with a plain video tag and the plugin takes care of the rest. When a visitor pauses a video or closes the tab, the position is saved, both in the browser and in the user account. Next time they open the page, the video continues where they left it.
If the page has a playlist, the player loads the first video, chains them when one ends, remembers which one was playing and highlights it in the list. Visitors can search the list, hide the videos they already watched and jump to a specific one.
Features
- Resume playback: the position is stored in the browser and, for logged in users, in the database, so it follows them to another device.
- Playlists: with the Playlist Block, with an HTML list or with a JavaScript array.
- Autoplay next video: when one video ends, the next one starts by itself.
- Remember the current video: the playlist reopens on the video that was playing.
- Search inside the playlist: a search box above the list filters it as you type.
- Hide watched videos: a button to show or hide the ones already played.
- Common words: the words repeated across the titles become quick filters.
- Start at a time:
?t=120 starts the video at 2 minutes.
- Start on a video:
?start_video=3 opens the third video of the playlist.
- Customisable: emojis for played, playing and download, plus the background color of the playing item.
- No jQuery: plain vanilla JavaScript, no extra libraries on the front end.
How to use it
A single video. Add a video block to your post, or paste a video tag in the HTML. Nothing else to do.
A playlist with the block. Insert the Playlist Block, add the videos with their names and URLs, done. The player reads that list.
A playlist with HTML. Create a list with the id bvideo_playlist:
<ol id="bvideo_playlist">
<li><a href="https://example.com/video-1.mp4">First video</a></li>
<li><a href="https://example.com/video-2.mp4">Second video</a></li>
</ol>
A playlist with JavaScript. Define a video_playlist array and the plugin builds the list for you. The size field is optional and only adds a download button:
<script>
var video_playlist = [
{ "name": "First video", "link": "https://example.com/video-1.mp4", "size": 55000000 },
{ "name": "Second video", "link": "https://example.com/video-2.mp4", "size": 475000000 }
];
</script>
Settings. Go to Settings > Video Settings to change the emojis, the background color of the playing item and autoplay.
Screenshots

A video being played on a post.

A playlist with the search box and the watched videos hidden.
FAQ
Do I need to convert my videos or host them somewhere special?
No. The plugin works with any file an HTML5 video tag can play: MP4, WebM, Ogg, and any URL, your server or a CDN. It does not re-encode anything.
Where is the progress stored?
Twice. In the browser’s local storage, so it works for anonymous visitors, and in the user meta of the account when the visitor is logged in. The database copy is what lets a logged in user continue on another device.
Why is there only one playlist per page?
The player looks for a single list with the id bvideo_playlist, because it drives one video element. Two playlists on the same page would fight over it.
Can I keep the video from starting by itself?
Yes, uncheck Autoplay in the settings. The next video will still load in the player when the current one ends, but it will wait for a click.
Does it work with the WordPress video block?
Yes. The video block outputs a normal video tag, and the plugin hooks any video on the page.
Does it work with YouTube or Vimeo embeds?
No. Those are iframes with their own player, so the plugin can not read their playback position. This plugin is for self hosted video files.
Does it add anything to the database?
One row in the user meta per video and user, with the position. Nothing else, and it is removed when the plugin is uninstalled.
ChangeLog
3.2
- Fixed: on the first visit, an HTML or block playlist did not load any video. The current video index was read as NaN and the player stopped before setting the source.
- Fixed: the search box and the “hide watched” button did nothing on HTML and block playlists, because their items never got the class the filter looks for.
- Fixed: the search also matched nothing on those lists, since the titles had no wrapper element to read.
- Fixed: the resume position from the database was read as
data[0], so it took the first character of the number. A video saved at 142.75 seconds resumed at a quote mark.
- Fixed: the played emoji was added again every time a video was marked, ending up with rows like three emojis in a row.
- Fixed: a video URL with characters outside latin1 made
btoa() throw and broke the player. The storage key is now built safely, and the keys already stored keep working.
- Fixed: the Playlist Block showed the “Add Video” button only on the first render, and it was registered with an old
apiVersion. It also used an editor API that no longer exists and the wrong text domain.
- Fixed: the Autoplay setting could not be turned off. The checkbox value “0” reached JavaScript as a non-empty string, which is truthy, so autoplay stayed on.
- Fixed: every settings field was registered without a sanitize callback, and the emoji and color fields printed their value without escaping.
- Fixed:
uninstall.php called register_uninstall_hook(), which does nothing there, and ran a $wpdb->prepare() without placeholders.
- Fixed: the text domain was
bbpl-textdomain, which does not match the plugin slug, so no translation could ever load. It is better-video now.
- Fixed: the admin color picker script was loaded without its stylesheet.
- Fixed: the request keys were used without checking that they exist, and the donation notice could not be dismissed.
- Tested up to WordPress 7.1.
3.1
- Refactored CSS fixes for consistency
- Refactored JS for better reading and fixed errors
3.0
- Vanilla JS removed jquery dependencies
- Search in list
- Common words for list
- Show/hide watched videos on a list
- New CSS for the playlist
- Tested for WordPress 6.7 compatibility
2.1.1
- Tested for WordPress 6.4 compatibility
2.1
- Major jQuery and PHP code refactor
- Improved method for tracking played videos
- New admin panel with customizable settings
2.0.4
- Enhanced descriptions and FAQs
2.0.3
- Tested for WordPress 6.3 compatibility
2.0.2
- Added smooth scroll to video
2.0.1
- Implemented AJAX for storing video time for logged-in users
1.0