在vue中使用H5Stream
参考上一篇文档:H5Stream使用
1、在vue中新建包,将下载的h5s-r10.6.0229.20-win64-release文件根目录下的www文件夹中的js放在里面,其中css也可以放在里面,也可以不用放
2、在vue的index.html文件中将上述js文件引入
3、新建组件Test.vue,内容如下:
<template>
<div class="h5videodiv">
<video class="h5video1" id="h5sVideo1" autoplay webkit-playsinline playsinline>
</video>
</div>
</template>
<script>
import '../../../public/js/jquery-3.1.1'
import {
H5siOS, GetURLParameter, H5sSafariBrowser } from '../../../public/js/h5splayerhelper.js'
import {
H5sPlayerWS } from '../../../public/js/h5splayer'
export default {
name: 'BizTestStudentList',
data() {
return {
v1: ''
}
},
mounted() {
// 版本一 start *********