Simple vue component that takes an array of videos as a prop and stitches them together/plays seamlessly in a custom video player
This is currently the only working solution to seamlessly play multiple videos (stitch into one video) in a row with a single working seek bar and controls made with vanilla JS.
This simple and lightweight Vue.js component allows you to stitch multiple videos together into a one single video with interactive custom controls. It seamlessly plays videos from a given (dynamic) array and creates a single seekbar making it seem to appear as a single video.
To install, from your project directory run
$ npm install vue-playlist --save
Import the component in your main.js file
Define an array of video files with this structure
playlist:bucketRef: 'YOUR_VIDEO_URL'bucketRef: 'YOUR_VIDEO_URL'
Now you can use it anywhere by simply referencing vue-playlist and passing the array of videos
(!) Make sure you have Font Awesome Icons installed/included in your application for the play/pause button to display properly. You can also overright the button text/icon with simple css styles.
For your convenience and the light weight vue-playlist doesn't come with any css styles. You will need to style the player and the controls to your preference.
To change the width of the player, apply styling to the element with the class .player
Here is a simple stylesheet for you to play around with:
Misha Petrov @ http://fictiontribe.com