当前位置: 首页 > news >正文

琼海建设网站wordpress4.2.2下载

琼海建设网站,wordpress4.2.2下载,wordpress 多说 代码,做网站资料准备什么公司项目需要实现摄像头实时视频播放#xff0c;flv格式的视频。先百度使用flv.js插件实现#xff0c;但是两个摄像头一个能放一个不能放#xff0c;没有找到原因。#xff08;开始两个都能放#xff0c;后端更改地址后不有一个不能放#xff09;但是在另一个系统上是可以…公司项目需要实现摄像头实时视频播放flv格式的视频。先百度使用flv.js插件实现但是两个摄像头一个能放一个不能放没有找到原因。开始两个都能放后端更改地址后不有一个不能放但是在另一个系统上是可以播放的。使用的是jessibuca.js jessibuca.js实现视频播放 1、下载jessibuca.js包 这三个文件需要直接放到public文件夹里不能在添加文件夹放置。 2、创建VideoPlayer.vue文件 templatediv idcontainer refcontainer/div /template script export default {name: DemoPlayer,props: {videoUrl: {type: String,default: }},data() {return {jessibuca: null,version: ,wasm: false,vc: ff,playing: false,quieting: true,loaded: false, // muteshowOperateBtns: false,showBandwidth: false,err: ,speed: 0,performance: ,volume: 1,rotate: 0,useWCS: false,useMSE: true,useOffscreen: false,recording: false,recordType: webm,scale: 0}},mounted() {this.create()window.onerror (msg) (this.err msg)},unmounted() {this.jessibuca.destroy()},methods: {create(options) {options options || {}this.jessibuca new window.Jessibuca(Object.assign({container: this.$refs.container,videoBuffer: 0.2, // Number(this.$refs.buffer.value), // 缓存时长isResize: false,useWCS: this.useWCS,useMSE: this.useMSE,text: ,// background: bg.jpg,loadingText: 疯狂加载中...,// hasAudio:false,debug: true,supportDblclickFullscreen: true,showBandwidth: this.showBandwidth, // 显示网速operateBtns: {fullscreen: this.showOperateBtns,screenshot: this.showOperateBtns,play: this.showOperateBtns,audio: this.showOperateBtns},vod: this.vod,forceNoOffscreen: !this.useOffscreen,isNotMute: true,timeout: 10},options))var _this thisthis.jessibuca.on(pause, function () {console.log(on pause)_this.playing false})this.jessibuca.on(play, function () {console.log(on play)_this.playing true})this.jessibuca.on(mute, function (msg) {console.log(on mute, msg)_this.quieting msg})this.jessibuca.on(error, function (error) {console.log(error, error)})this.jessibuca.on(performance, function (performance) {var show 卡顿if (performance 2) {show 非常流畅} else if (performance 1) {show 流畅}_this.performance show})this.jessibuca.on(play, () {this.playing truethis.loaded truethis.quieting this.jessibuca.isMute()})},play(videoUrl) {if (videoUrl) {this.jessibuca.play(videoUrl)} else {// this.$message.error(播放地址出错)this.destroy()}},mute() {this.jessibuca.mute()},cancelMute() {this.jessibuca.cancelMute()},pause() {this.jessibuca.pause()this.playing falsethis.err this.performance },destroy() {if (this.jessibuca) {this.jessibuca.destroy()}this.create()this.playing falsethis.loaded falsethis.performance }} } /script style #container {background: rgba(13, 14, 27, 0.7);width: 100%;height: 100%; } /style 3、使用组件 引入 import VideoPlayer from /components/VideoPlayer.vue使用 VideoPlayer refVideoPlayer/VideoPlayer播放 let url http://182.150.58.94:15280/rtp/44010200492000000001_34020000001320000110.flv this.$refs.VideoPlayer.play(url)效果 参考文档 jessibuca-api-文档 参考官方实例 jessibuca-vue-demo
http://www.hkea.cn/news/14590091/

相关文章:

  • 软件开发工程师证书有哪些成都网站优化推广
  • 门户网站建设背景wordpress首次访问很卡慢
  • 下沙做网站来宾网站制作
  • 诸城个人网站建设内容营销模式
  • 做有色研究的网站wordpress iis内存高
  • 网站推广必做百度seoo优化软件
  • 初学者学做网站用什么软件网站访问量怎么赚钱
  • 什么网站专门做外围的微信 网站应用开发
  • 深圳网站制作公司兴田德润怎么样网站开发哈尔滨网站开发公司
  • 站群网站和做seo那个号dz网站建设
  • 响应式网站开发要注意哪些wordpress 会员购买系统
  • 常州做网站公司哪家好公司建设网站的报告
  • 建设官方网站企业网银登录wordpress定制首页
  • 富阳有没有做网站的专业seo优化推广
  • 自助做网站比较好网站制作公司
  • 坂田网站建设推广公司做外贸有效的网站
  • 商务网站建设试题做化妆品网站怎样
  • dw如何做网站后台什么是域名解析
  • 校园网站建设多少钱直播软件怎么开发
  • 自己做的网站怎么让别人能访问90年代设计
  • wordpress购物网站深圳市网络seo推广平台
  • 搭建网站需要什么工具去国外怎么导航地图
  • 建设投票网站的目的网站快照是自己做的吗
  • 域名不变修改网站怎么做app在线开发网站建设
  • 网站支付链接怎么做的网站建站公司排行
  • 临沂网站制作加速企业发展网址导航系统
  • 企业网站优化系统网站建设与网站开发
  • 山东平台网站建设企业主播网站建立
  • 陕西省国家示范校建设专题网站wordpress部署到外网
  • 男男做暧网站免费网站强制qq弹窗代码