yraplay
v1.2.1
Published
yra视频播放组件,支持h265,h265, 支持ws,flv协议
Downloads
8
Readme
组件功能
yra视频播放组件,支持h265, h265, 支持ws,flv协议
使用组件
npm安装
npm i yraplay
使用
import yraplay from "yraplay"; // 引用组件
import "yraplay/yraplay.css"; // 添加样式
Vue.use(yraplay);
使用示例
<template>
<div>
<yra-play ref="yraPlay" />
</div>
</template>
<script>
export default {
mounted(){
this.$refs.yraPlay.play(连接地址);
}
}
</script>