diff --git a/src/utils/HKVideo.js b/src/utils/HKVideo.js index d00448c..122b97f 100644 --- a/src/utils/HKVideo.js +++ b/src/utils/HKVideo.js @@ -225,3 +225,41 @@ console.log(`${ip}登出失败`) }) } +// 停止 +export function stop(index) { + WebVideoCtrl.I_Stop({ + iWndIndex: index, + success() { + }, + error(oError) { + }, + }) +} + +// 启用电子放大 +export function clickEnableEZoom() { + var szDeviceIdentify = $("#ip").val(); + var oWndInfo = WebVideoCtrl.I_GetWindowStatus(g_iWndIndex), + szInfo = ""; + + if (oWndInfo != null) { + WebVideoCtrl.I_EnableEZoom().then(() => { + szInfo = "启用电子放大成功!"; + showOPInfo(szDeviceIdentify + " " + szInfo); + }, (oError) => { + szInfo = "启用电子放大失败!"; + showOPInfo(szDeviceIdentify + szInfo, oError.errorCode, oError.errorMsg); + + }); + } +} + +// 全屏 +export function clickFullScreen() { + WebVideoCtrl.I_FullScreen(true).then(() => { + showOPInfo("全屏成功"); + }, (oError) => { + showOPInfo("全屏失败!", oError.errorCode, oError.errorMsg); + }); +} + diff --git a/src/utils/HKVideo.js b/src/utils/HKVideo.js index d00448c..122b97f 100644 --- a/src/utils/HKVideo.js +++ b/src/utils/HKVideo.js @@ -225,3 +225,41 @@ console.log(`${ip}登出失败`) }) } +// 停止 +export function stop(index) { + WebVideoCtrl.I_Stop({ + iWndIndex: index, + success() { + }, + error(oError) { + }, + }) +} + +// 启用电子放大 +export function clickEnableEZoom() { + var szDeviceIdentify = $("#ip").val(); + var oWndInfo = WebVideoCtrl.I_GetWindowStatus(g_iWndIndex), + szInfo = ""; + + if (oWndInfo != null) { + WebVideoCtrl.I_EnableEZoom().then(() => { + szInfo = "启用电子放大成功!"; + showOPInfo(szDeviceIdentify + " " + szInfo); + }, (oError) => { + szInfo = "启用电子放大失败!"; + showOPInfo(szDeviceIdentify + szInfo, oError.errorCode, oError.errorMsg); + + }); + } +} + +// 全屏 +export function clickFullScreen() { + WebVideoCtrl.I_FullScreen(true).then(() => { + showOPInfo("全屏成功"); + }, (oError) => { + showOPInfo("全屏失败!", oError.errorCode, oError.errorMsg); + }); +} + diff --git a/src/utils/request.js b/src/utils/request.js index 33f34b9..937ef35 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -15,7 +15,7 @@ if (store.getters.token) { config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 } - // config.headers['token'] = '59c4345f-6ec9-4d8a-b499-6de2da92d2b1' // 让每个请求携带自定义token 请根据实际情况自行修改 + // config.headers['token'] = 'bbb3d4f2-2571-4f2e-a276-0d575ea95854' // 让每个请求携带自定义token 请根据实际情况自行修改 return config }, error => { diff --git a/src/utils/HKVideo.js b/src/utils/HKVideo.js index d00448c..122b97f 100644 --- a/src/utils/HKVideo.js +++ b/src/utils/HKVideo.js @@ -225,3 +225,41 @@ console.log(`${ip}登出失败`) }) } +// 停止 +export function stop(index) { + WebVideoCtrl.I_Stop({ + iWndIndex: index, + success() { + }, + error(oError) { + }, + }) +} + +// 启用电子放大 +export function clickEnableEZoom() { + var szDeviceIdentify = $("#ip").val(); + var oWndInfo = WebVideoCtrl.I_GetWindowStatus(g_iWndIndex), + szInfo = ""; + + if (oWndInfo != null) { + WebVideoCtrl.I_EnableEZoom().then(() => { + szInfo = "启用电子放大成功!"; + showOPInfo(szDeviceIdentify + " " + szInfo); + }, (oError) => { + szInfo = "启用电子放大失败!"; + showOPInfo(szDeviceIdentify + szInfo, oError.errorCode, oError.errorMsg); + + }); + } +} + +// 全屏 +export function clickFullScreen() { + WebVideoCtrl.I_FullScreen(true).then(() => { + showOPInfo("全屏成功"); + }, (oError) => { + showOPInfo("全屏失败!", oError.errorCode, oError.errorMsg); + }); +} + diff --git a/src/utils/request.js b/src/utils/request.js index 33f34b9..937ef35 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -15,7 +15,7 @@ if (store.getters.token) { config.headers['token'] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改 } - // config.headers['token'] = '59c4345f-6ec9-4d8a-b499-6de2da92d2b1' // 让每个请求携带自定义token 请根据实际情况自行修改 + // config.headers['token'] = 'bbb3d4f2-2571-4f2e-a276-0d575ea95854' // 让每个请求携带自定义token 请根据实际情况自行修改 return config }, error => { diff --git a/src/views/video/monitor.vue b/src/views/video/monitor.vue index d49e6a5..294cea1 100644 --- a/src/views/video/monitor.vue +++ b/src/views/video/monitor.vue @@ -1,3 +1,4 @@ +