
Better Video & Playlist
v3.2Chema · 2022年10月28日 上架
Remember where each video was left off, and play your videos as an ordered playlist.
- 正在使用
- 10+
- 评分
- 5.0 / 5
- 累计下载
- 2,721
- 最近更新
- 2026年11月19日
贡献者
截图
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=120starts the video at 2 minutes. - Start on a video:
?start_video=3opens 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.

