project
A Vue.js project
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
# http://localhost:3000/appH5/?userId=8859&atoken=651b49b5-d040-42e5-b379-4051089bd8f0&type=undefined&id=632&name=%E4%BC%9A%E8%AE%AE%E5%AE%A4%E9%97%A8%E5%8F%A3&mallId=9217&mallName=Demo%20Store2&bookmark=false&channelNo=4&deviceSerial=F16423875&gateUnid=cf21f4a8-65c6-11ee-837e-00163e143ecd&ptzEnable=0&aiChannelId=&mallOrgName=%E5%8A%9E%E5%85%AC%E5%AE%A4&accountId=337&terminalType=devtools&newLevel=
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader. #萤石播放视频截图功能需要找到源码,把下载动作拦截掉,方法是JS_CapturePicture(),重排代码后位置大概在48405行,z.oTool.downloadFile()方法注释掉 #如果萤石视频流切换路由时,视频流没有停掉,是因为js中代码一个判断报错,将代码21403行,方法hide中代码换成最简单的获取dom方法 document.getElementById(this.jSPlugin.id, "-ez-ptz-item").style = "display: none"; #h5端萤石视频截图报错,需要将预计59500多行的this.getPic方法中的var a中的 rect:this.stYUVRect 改为 rect: {...this.stYUVRect}