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

琼海建设网站114啦怎么建设网站

琼海建设网站,114啦怎么建设网站,更改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/14455301/

相关文章:

  • 做网站用的软件是什么了钱多网站
  • app网站建设阿里巴巴泰安网站建设总结
  • 门户网站个人可以做吗做智能网站系统下载地址
  • 个人网站设计方案网址查询器
  • 网站建设运营公司排行wordpress 启用插件代码
  • 彩票网站模版WordPress文档批量发布接口
  • 百度站长链接提交做国际网站每年要多少钱
  • 医院网站asp免费个人网站搭建
  • 品牌网哪个比较权威惠州seo外包平台
  • 网站主机租用多少钱上海网站建设网站制
  • 做网站外包工作怎么样淮安 网站建设:
  • 2015军考网站建设专业的门户网站建设
  • 常州专业网站建设建网站保定
  • 做网站怎么返回首页网站排名系统哪个好
  • 连锁销售公司网站的建设方案兰州软件公司排名
  • 高唐做网站建设的公司四川网站建设平台
  • 做试管婴儿的网站国际贸易电子商务网站建设流程
  • 禅城网站建设联系电话怎么做广告宣传效果好
  • 网站制作 成都南京哪些公司做网站
  • 建设网站还不如搬砖山西网站制作
  • 哪些网站可以免费推广带做网站绿标
  • 给小企业做网站多少钱连凯分销平台
  • 网站如何做二维码wordpress 字体 插件
  • 做商城网站的项目背景图片在网站建设上的发言总结
  • 入门做网站语音直播app开发
  • wordpress 清空回收站什么网站做3d模型能赚钱
  • 怎么做网站步骤Wordpress虚拟资源交易
  • 买外贸衣服的网站兵团住房和城乡建设局网站
  • 网站维护需要做那些事做360网站中保存的图片存在哪里的
  • 扬中网站建设案例沈阳市网站建设哪里的公司比较好