diff --git a/src/components/videoModule/isc_plugin/isc_plugin_h5.vue b/src/components/videoModule/isc_plugin/isc_plugin_h5.vue index 327a8c86..bc5e1ed8 100644 --- a/src/components/videoModule/isc_plugin/isc_plugin_h5.vue +++ b/src/components/videoModule/isc_plugin/isc_plugin_h5.vue @@ -510,7 +510,7 @@ export default { cameraIndexCode: tempCode, streamType: row.defaultStreamType == 2 ? 0 : row.defaultStreamType, - type: "ws", + type: window.location.protocol.includes("https") ? "wss" : "ws", transmode: 1, itemId: row.itemId, }; diff --git a/src/views/projectFront/replayVideoManage/components/playBack/isc_plugin_h5.vue b/src/views/projectFront/replayVideoManage/components/playBack/isc_plugin_h5.vue index ca76cba7..71854158 100644 --- a/src/views/projectFront/replayVideoManage/components/playBack/isc_plugin_h5.vue +++ b/src/views/projectFront/replayVideoManage/components/playBack/isc_plugin_h5.vue @@ -736,7 +736,7 @@ export default { // itemId: row.itemId, serialNumber: row.serialNumber, projectSn: row.projectSn, - protocol: "ws", + protocol: window.location.protocol.includes("https") ? "wss" : "ws", beginTime: this.startTime, endTime: this.endTime,