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

惠州建设企业网站asp.net 如何设置网站首页

惠州建设企业网站,asp.net 如何设置网站首页,移动吉生活app下载,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/14391001/

相关文章:

  • 湖南网站营销seo哪家好企业网站建设开发多少钱
  • 怎么做图片网站品牌宣传型网站
  • 常州网站开发电子网站建设前台设计
  • 无法进入网站后台网站开发流程中客户的任务是什么
  • 网站模版如何使用网站开发建设明细报价表
  • 外贸网站建设哪家合适俄罗斯搜索引擎yandex官网入口
  • 网站的建设服务器安什么网站建设
  • 免费域名网站建设com网站域名可以是汉字吗
  • linux系统服务器怎么做网站国外做gif的网站
  • python 做网站教程php语言 网站建设
  • 在酒店做那个网站好山药云搭建网站
  • 餐饮行业网站建设风格网上商城系统流程图
  • php做的网站论文河南网站制作公司
  • 同一个ip网站太多 seo广东省农业农村厅官网首页
  • 分析对手网站什么是黄页
  • 企业网站模板科技感手机网站制作报价
  • 做运营需要看的网站别人帮做的网站到期续费
  • 国家住房和城乡建设部网站查询wordpress 3.3.1
  • 黔西南北京网站建设wordpress 标签 404
  • 西安建设工程信息平台搜索引擎优化推广
  • 郑州做手机网站建设天猫优惠卷怎么做网站
  • 公司网站建设外包网站建设网络推广平台
  • 都用什么软件做网站品牌网是什么
  • 南通做网站软件浏览网站时弹出的广告是谁给做的
  • 重庆好的推广网站哈尔滨企业网站排名
  • WordPress建立电商网站广告图片
  • php 用什么做网站服务器有名的网页游戏
  • 山东网站备案拍照二手网站专业做附近人的有吗
  • 百度手机助手下载安卓企业网站seo优化公司
  • 做网站到底要不要备案建设门户网站多少钱