Mini Video Playback (npm)
Make the video pop out so that you could move it wherever you like.
$ npm install mini-video-playback
document.addEventListener('DOMContentLoaded', () => {
const videoTagElementRef = document.querySelector('video');
const miniVideoPlayback = new MiniVideoPlayback(videoTagElementRef, {
width: 480,
height: 270
});
miniVideoPlayback.show();
}, false);
Set preview width (in px
units)
Default: 480px
Set preview height (in px
units)
Default: 270px
Allow to drag element
Default: true
Point parent element where preview will be embeded
Default: document.body
Show floating playback preview
Hide floating playback preview
Due to CORS you have to provide video resource locally or
from server with proper Access-Control-Allow-Origin
header.
All changes are listed here
The MIT License @ 2018