Commit b5f1a8e4 by 潘建波

【BUG】flv播放黑屏问题解决

【BUG】新增预置位Chrome不能设置预置位编号
1 parent 7cc59b41
...@@ -2,7 +2,7 @@ window.config = { ...@@ -2,7 +2,7 @@ window.config = {
"logstatus":true, //是否开启日志收集 "logstatus":true, //是否开启日志收集
"hadertitle":"AI视频分析平台",//系统标题 "hadertitle":"AI视频分析平台",//系统标题
"logintitle":"AI视频分析平台",//展示标题 "logintitle":"AI视频分析平台",//展示标题
"https": true, "https": false,
"isvideo":0, "isvideo":0,
"bigtree":false,//大数据展示树 "bigtree":false,//大数据展示树
"host":"http://10.1.200.100:20080", "host":"http://10.1.200.100:20080",
...@@ -12,5 +12,5 @@ window.config = { ...@@ -12,5 +12,5 @@ window.config = {
"ddwsurl":"10.1.200.97:29090", "ddwsurl":"10.1.200.97:29090",
"isdd":false, //是否开启钉钉登录 "isdd":false, //是否开启钉钉登录
"version":"2.1.0", "version":"2.1.0",
"encrypt":false,//是否加密true采用sha1加密,false不加密 "encrypt":true,//是否加密true采用sha1加密,false不加密
} }
...@@ -11,8 +11,9 @@ import log from "./api/log"; ...@@ -11,8 +11,9 @@ import log from "./api/log";
import "./assets/css/public.css"; import "./assets/css/public.css";
import echarts from "echarts"; import echarts from "echarts";
import "./assets/icon/icon/iconfont.css"; import "./assets/icon/icon/iconfont.css";
import "./assets/icon/icon3/iconfont.css";
import "./assets/icon/icon4/iconfont.css"; import "./assets/icon/icon4/iconfont.css";
import "./assets/icon/icon3/iconfont.css";
import "../src/assets/js/vporto"; import "../src/assets/js/vporto";
import { buildCode } from "../src/assets/js/buildcodes"; import { buildCode } from "../src/assets/js/buildcodes";
import particles from "particles.js"; import particles from "particles.js";
......
...@@ -95,11 +95,13 @@ export default { ...@@ -95,11 +95,13 @@ export default {
this.startFunc(this.cururl); this.startFunc(this.cururl);
}, },
destoryVideo(flvPlayer) { destoryVideo(flvPlayer) {
debugger
flvPlayer.pause(); flvPlayer.pause();
flvPlayer.unload(); flvPlayer.unload();
flvPlayer.detachMediaElement(); flvPlayer.detachMediaElement();
flvPlayer.destroy(); flvPlayer.destroy();
flvPlayer = null; flvPlayer = null;
this.player = null;
}, },
flv_pause() { flv_pause() {
this.player.pause(); this.player.pause();
......
...@@ -165,10 +165,14 @@ export default { ...@@ -165,10 +165,14 @@ export default {
}, },
subset() { subset() {
let vrefid = this.vchan.refid || this.vchan.vchan_refid; let vrefid = this.vchan.refid || this.vchan.vchan_refid;
document this.$emit("subpostion", this.presetindex);
try {
document
.getElementById("VionVideo") .getElementById("VionVideo")
.VionPTZControl(String(vrefid), Number(18), Number(this.presetindex)); .VionPTZControl(String(vrefid), Number(18), Number(this.presetindex));
this.$emit("subpostion", this.presetindex); } catch (error) {
console.log(error)
}
}, },
deleteytconfig() { deleteytconfig() {
this.$emit("deleteytconfig", this.presetindex); this.$emit("deleteytconfig", this.presetindex);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!