速度
@@ -74,7 +74,16 @@ export default {
name: 'PtzControls',
props: {
btnLayout: { type: String, default: 'column' },
- homePosition: { type: Boolean, default: false }
+ homePosition: { type: Boolean, default: false },
+ showDiagonals: { type: Boolean, default: true }
+ },
+ computed: {
+ hasPtzDirection() { return 'ptz-move' in this.$listeners },
+ hasFocus() { return 'focus-move' in this.$listeners },
+ hasIris() { return 'iris-move' in this.$listeners },
+ hasDragZoom() { return 'toggle-drag-zoom' in this.$listeners || 'toggle-drag-zoom-out' in this.$listeners },
+ hasGuard() { return 'ptz-guard' in this.$listeners },
+ hasAnyPtz() { return this.hasPtzDirection || this.hasFocus || this.hasIris || this.hasDragZoom || this.hasGuard }
},
data() {
return {
diff --git a/web/src/views/common/streamMediaPanel.vue b/web/src/views/common/streamMediaPanel.vue
new file mode 100644
index 000000000..03d15c006
--- /dev/null
+++ b/web/src/views/common/streamMediaPanel.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 更多地址
+
+ FLV:{{ streamInfo.flv }}
+ FLV(https):{{ streamInfo.https_flv }}
+ FLV(ws):{{ streamInfo.ws_flv }}
+ FLV(wss):{{ streamInfo.wss_flv }}
+ FMP4:{{ streamInfo.fmp4 }}
+ FMP4(https):{{ streamInfo.https_fmp4 }}
+ FMP4(ws):{{ streamInfo.ws_fmp4 }}
+ FMP4(wss):{{ streamInfo.wss_fmp4 }}
+ HLS:{{ streamInfo.hls }}
+ HLS(https):{{ streamInfo.https_hls }}
+ HLS(ws):{{ streamInfo.ws_hls }}
+ HLS(wss):{{ streamInfo.wss_hls }}
+ TS:{{ streamInfo.ts }}
+ TS(https):{{ streamInfo.https_ts }}
+ TS(ws):{{ streamInfo.ws_ts }}
+ TS(wss):{{ streamInfo.wss_ts }}
+ RTC:{{ streamInfo.rtc }}
+ RTCS:{{ streamInfo.rtcs }}
+ RTMP:{{ streamInfo.rtmp }}
+ RTMPS:{{ streamInfo.rtmps }}
+ RTSP:{{ streamInfo.rtsp }}
+ RTSPS:{{ streamInfo.rtsps }}
+
+
+
+
+
+
+
+
+
diff --git a/web/src/views/device/dialog/devicePlayer.vue b/web/src/views/device/dialog/devicePlayer.vue
index 19377c790..4b8cfba5d 100755
--- a/web/src/views/device/dialog/devicePlayer.vue
+++ b/web/src/views/device/dialog/devicePlayer.vue
@@ -37,56 +37,7 @@
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 更多地址
-
- FLV:{{ streamInfo.flv }}
- FLV(https):{{ streamInfo.https_flv }}
- FLV(ws):{{ streamInfo.ws_flv }}
- FLV(wss):{{ streamInfo.wss_flv }}
- FMP4:{{ streamInfo.fmp4 }}
- FMP4(https):{{ streamInfo.https_fmp4 }}
- FMP4(ws):{{ streamInfo.ws_fmp4 }}
- FMP4(wss):{{ streamInfo.wss_fmp4 }}
- HLS:{{ streamInfo.hls }}
- HLS(https):{{ streamInfo.https_hls }}
- HLS(ws):{{ streamInfo.ws_hls }}
- HLS(wss):{{ streamInfo.wss_hls }}
- TS:{{ streamInfo.ts }}
- TS(https):{{ streamInfo.https_ts }}
- TS(ws):{{ streamInfo.ws_ts }}
- TS(wss):{{ streamInfo.wss_ts }}
- RTC:{{ streamInfo.rtc }}
- RTCS:{{ streamInfo.rtcs }}
- RTMP:{{ streamInfo.rtmp }}
- RTMPS:{{ streamInfo.rtmps }}
- RTSP:{{ streamInfo.rtsp }}
- RTSPS:{{ streamInfo.rtsps }}
-
-
-
-
-
-
+
@@ -105,11 +56,12 @@ import playerTabs from '../../common/playerTabs.vue'
import devicePtzPanel from '../common/devicePtzPanel.vue'
import PtzPreset from '../../common/ptzPreset.vue'
import mediaInfo from '../../common/mediaInfo.vue'
+import streamMediaPanel from '../../common/streamMediaPanel.vue'
export default {
name: 'DevicePlayer',
directives: { elDragDialog },
- components: { playerTabs, devicePtzPanel, PtzPreset, mediaInfo },
+ components: { playerTabs, devicePtzPanel, PtzPreset, mediaInfo, streamMediaPanel },
props: {},
data() {
return {
@@ -132,13 +84,6 @@ export default {
dragZoomDirection: ''
}
},
- computed: {
- sharedIframe: function(){
- return ``
- }
- },
- created() {
- },
methods: {
tabHandleClick: function(tab) {
if (tab.name === 'codec') {
@@ -184,12 +129,6 @@ export default {
this.videoUrl = ''
this.showVideoDialog = false
},
- copyUrl: function(dropdownItem) {
- this.$copyText(dropdownItem).then(() => {
- this.$message.success({ showClose: true, message: '成功拷贝到粘贴板' })
- }, () => {})
- },
-
toggleDragZoom(direction) {
this.dragZoomDirection = direction
this.$refs.playerTabs.startDragZoom((params) => {
diff --git a/web/src/views/jtDevice/common/jtDevicePtzPanel.vue b/web/src/views/jtDevice/common/jtDevicePtzPanel.vue
new file mode 100644
index 000000000..658cf6618
--- /dev/null
+++ b/web/src/views/jtDevice/common/jtDevicePtzPanel.vue
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
diff --git a/web/src/views/jtDevice/dialog/jtDevicePlayer.vue b/web/src/views/jtDevice/dialog/jtDevicePlayer.vue
index 76811f366..4d47a594e 100755
--- a/web/src/views/jtDevice/dialog/jtDevicePlayer.vue
+++ b/web/src/views/jtDevice/dialog/jtDevicePlayer.vue
@@ -1,344 +1,87 @@
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
+
-
-
-
- 播放地址:
-
-
-
-
-
-
-
- iframe:
-
-
-
-
-
-
-
-
资源地址:
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 开启雨刷
+ 关闭雨刷
+
+
+ 开补光灯
+ 关补光灯
+
+
+
+
+
-
-
- 更多地址
-
-
-
- FLV:
- {{ streamInfo.flv }}
-
-
- FLV(https):
- {{ streamInfo.https_flv }}
-
-
- FLV(ws):
- {{ streamInfo.ws_flv }}
-
-
- FLV(wss):
- {{ streamInfo.wss_flv }}
-
-
- FMP4:
- {{ streamInfo.fmp4 }}
-
-
- FMP4(https):
- {{ streamInfo.https_fmp4 }}
-
-
- FMP4(ws):
- {{ streamInfo.ws_fmp4 }}
-
-
- FMP4(wss):
- {{ streamInfo.wss_fmp4 }}
-
-
- HLS:
- {{ streamInfo.hls }}
-
-
- HLS(https):
- {{ streamInfo.https_hls }}
-
-
- HLS(ws):
- {{ streamInfo.ws_hls }}
-
-
- HLS(wss):
- {{ streamInfo.wss_hls }}
-
-
- TS:
- {{ streamInfo.ts }}
-
-
- TS(https):
- {{ streamInfo.https_ts }}
-
-
- TS(ws):
- {{ streamInfo.ws_ts }}
-
-
- TS(wss):
- {{ streamInfo.wss_ts }}
-
-
- RTC:
- {{ streamInfo.rtc }}
-
-
- RTCS:
- {{ streamInfo.rtcs }}
-
-
- RTMP:
- {{ streamInfo.rtmp }}
-
-
- RTMPS:
- {{ streamInfo.rtmps }}
-
-
- RTSP:
- {{ streamInfo.rtsp }}
-
-
- RTSPS:
- {{ streamInfo.rtsps }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ 正在释放资源
+ 点击开始对讲
+ 等待接通中...
+ 请说话
+
-
-
-
- 开启雨刷
-
- 关闭雨刷
-
-
-
- 开补光灯
-
- 关补光灯
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 正在释放资源
- 点击开始对讲
- 等待接通中...
- 请说话
-
-
-
-
-
-
diff --git a/web/src/views/streamProxy/index.vue b/web/src/views/streamProxy/index.vue
index 0e2f27787..7cb3a80f1 100755
--- a/web/src/views/streamProxy/index.vue
+++ b/web/src/views/streamProxy/index.vue
@@ -49,7 +49,7 @@
-
+
@@ -124,14 +124,14 @@
+
+
diff --git a/web/src/views/streamPush/index.vue b/web/src/views/streamPush/index.vue
index e91a9c98d..bc5ad9075 100755
--- a/web/src/views/streamPush/index.vue
+++ b/web/src/views/streamPush/index.vue
@@ -140,7 +140,7 @@
@current-change="currentChange"
/>
-
+
@@ -149,7 +149,7 @@
+
+