A vue3-video-player plugin for HLS Decoding.
$ npm install @cloudgeek/vue3-video-player --save
$ npm install @cloudgeek/playcore-hls --save
<template>
<div id="app">
<div class="player-container">
<vue3-video-player :core="HLSCore" src="your_file.m3u8"></vue3-video-player>
</div>
</div>
</template>
<script>
import Vue3VideoPlayer from '@cloudgeek/vue3-video-player'
import HLSCore from '@cloudgeek/playcore-hls
Vue.use(Vue3VideoPlayer)
export default {
name: 'App',
data () {
return {
HLSCore
}
}
}
</script>