|
|
@@ -16,7 +16,6 @@ |
|
|
|
</div> |
|
|
|
<!-- --> |
|
|
|
<div style="width: 794px; height: 487px; padding-top: 26px"> |
|
|
|
<!-- <img src="/static/screen/testimg/2.png" alt="" style="width: 100%; height: 100%" /> --> |
|
|
|
<iframe id="rtsIframe" style="width: 100%; height: 100%" :src="rtsUrl" frameborder="0"></iframe> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -122,12 +121,22 @@ const itemClick = item => { |
|
|
|
let rtsUrl_ = "/static/rtsPlayer.html?height=487px&rtsUrl="; |
|
|
|
sensorId.value = item.sensorId; |
|
|
|
screenApi.detail({ sensorId: item.sensorId }).then(res => { |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.data.rtsPullStreamUrls[0]) { |
|
|
|
rtsUrl.value = rtsUrl_ + res.data.rtsPullStreamUrls[0].url; |
|
|
|
} |
|
|
|
streamId.value = res.data.streamId; |
|
|
|
videoToken.value = res.data.videoToken; |
|
|
|
// if (res.code == 200) { |
|
|
|
// if (res.data.rtsPullStreamUrls[0]) { |
|
|
|
// rtsUrl.value = rtsUrl_ + res.data.rtsPullStreamUrls[0].url; |
|
|
|
// } |
|
|
|
// streamId.value = res.data.streamId; |
|
|
|
// videoToken.value = res.data.videoToken; |
|
|
|
// } |
|
|
|
// 演示 |
|
|
|
if (item.sensorName == "厨房(良景)") { |
|
|
|
rtsUrl.value = rtsUrl_ + "http://123.57.209.16:8004/video/4.mp4"; |
|
|
|
} |
|
|
|
if (item.sensorName == "大厅(魔豆)") { |
|
|
|
rtsUrl.value = rtsUrl_ + "http://123.57.209.16:8004/video/2.mp4"; |
|
|
|
} |
|
|
|
if (item.sensorName == "教学区域(海康)") { |
|
|
|
rtsUrl.value = rtsUrl_ + "http://123.57.209.16:8004/video/5.mp4"; |
|
|
|
} |
|
|
|
}); |
|
|
|
}; |
|
|
|