Commit 1e6ff746 authored by honghuiliu's avatar honghuiliu 💬

Merge remote-tracking branch 'origin/master'

parents 7eb9cd7d f90cc811
...@@ -41,6 +41,14 @@ ...@@ -41,6 +41,14 @@
window.addEventListener('onresize',this.resize); window.addEventListener('onresize',this.resize);
}) })
}, },
unmounted(){
if(this.player){
window.removeEventListener('onresize',this.resize);
this.player.stop();
this.player = null;
}
},
methods: { methods: {
play() { play() {
const playPromise = this.player.play(); const playPromise = this.player.play();
......
...@@ -172,7 +172,7 @@ oss: ...@@ -172,7 +172,7 @@ oss:
# dtu设备配置 # dtu设备配置
dtuServer: dtuServer:
addr: 0.0.0.0:9804 addr: 0.0.0.0:9804
enable: false enable: true
# 莹石云帐号 # 莹石云帐号
yinShiYun: yinShiYun:
......
...@@ -172,7 +172,7 @@ oss: ...@@ -172,7 +172,7 @@ oss:
# dtu设备配置 # dtu设备配置
dtuServer: dtuServer:
addr: 0.0.0.0:9804 addr: 0.0.0.0:9804
enable: true enable: false
# 莹石云帐号 # 莹石云帐号
yinShiYun: yinShiYun:
......
...@@ -70,7 +70,7 @@ func dtuOnMessage(conn net.Conn) { ...@@ -70,7 +70,7 @@ func dtuOnMessage(conn net.Conn) {
if yeWeiCb != nil { if yeWeiCb != nil {
err = yeWeiCb(yeweiData) err = yeWeiCb(yeweiData)
if err != nil { if err != nil {
global.GVA_LOG.Error(fmt.Sprintf("处理液位回调失败 strData: %s", strData)) global.GVA_LOG.Error(fmt.Sprintf("处理液位回调失败 strData: %s, err:%s", strData, err.Error()))
} }
} }
} }
......
...@@ -41,5 +41,5 @@ func GetYinShiAccessToken(userName string) (string, error) { ...@@ -41,5 +41,5 @@ func GetYinShiAccessToken(userName string) (string, error) {
// GetCameraUrl 获取监控播放地址 // GetCameraUrl 获取监控播放地址
func GetCameraUrl(deviceId string) string { func GetCameraUrl(deviceId string) string {
return fmt.Sprintf("ezopen://open.ys7.com/%s/1.hd.live", deviceId) return fmt.Sprintf("ezopen://open.ys7.com/%s/1.live", deviceId)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment