0.1.12 • Published 4 years ago
flv-live-player v0.1.12
Installation
npm install flv-live-player
import Vue from 'vue'
import flvLivePlayer from 'flv-live-player'
import 'flv-live-player/lib/flvLivePlayer.css'
Vue.use(flvLivePlayer)
examples
<template>
<div class="video-box">
<div>
<flv-live-player url="http://example.com/live?app=demo&stream=19216830250-33"></flv-live-player>
</div>
</div>
</template>
<script>
export default {
data () {
return {}
},
mounted () {},
components: {}
}
</script>
<style scoped>
.video-box {
display: flex;
margin: 0 auto;
}
.video-box > div {
width: 500px;
height: 400px;
}
</style>
Props
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
url | String | '' | 直播的url |