Package Exports
- vue-hls-video-player
Readme
vue-hls-video-player
Descriptions
It is a video player for the m3u8 format
Requirements: only for the vue 3 projects
Examples, how to use component
npm i vue-hls-video-player
<VideoPlayer
type="default"
@pause="processPause"
previewImageLink="poster.webp"
link="videoLink.m3u8"
:progress="30"
class="customClassName"
/>
<VideoPlayer
type="preview"
previewImageLink="poster.webp"
link="videoLink.m3u8"
class="customClassName"
/>
Props:
type:
- default - default video player, where you can process pauses and setup progress time
- preview - you can pause video on hover
@pause:
- event how you can process pauses @pause="processPause"
function processPause(progress: number) { console.log(progress) }
previewImageLink: preview (poster) image for the video player link: link on video.m3u8
Aditional information
If you have any ideas, or need a fast fix, write me and I try to help you