Quellcode durchsuchen

大屏 演示还原

master
yxq vor 3 Tagen
Ursprung
Commit
f36c2c4f97
3 geänderte Dateien mit 20 neuen und 34 gelöschten Zeilen
  1. +7
    -9
      SafeCampus.WEB/src/views/screen/classroom.vue
  2. +6
    -16
      SafeCampus.WEB/src/views/screen/component/index/video.vue
  3. +7
    -9
      SafeCampus.WEB/src/views/screen/stureturn.vue

+ 7
- 9
SafeCampus.WEB/src/views/screen/classroom.vue Datei anzeigen

@@ -117,15 +117,13 @@ const showRts = sensorId_ => {
let rtsUrl_ = "/static/rtsPlayer.html?height=556px&rtsUrl=";
sensorId.value = sensorId_;
screenApi.detail({ sensorId: 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;
// }
// 演示
rtsUrl.value = rtsUrl_ + "http://123.57.209.16:8004/video/5.mp4";
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;
}
});
}
};


+ 6
- 16
SafeCampus.WEB/src/views/screen/component/index/video.vue Datei anzeigen

@@ -121,22 +121,12 @@ 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 (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";
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;
}
});
};


+ 7
- 9
SafeCampus.WEB/src/views/screen/stureturn.vue Datei anzeigen

@@ -132,15 +132,13 @@ const showRts = sensorId_ => {
let rtsUrl_ = "/static/rtsPlayer.html?height=446px&rtsUrl=";
sensorId.value = sensorId_;
screenApi.detail({ sensorId: 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;
// }
// 演示
rtsUrl.value = rtsUrl_ + "http://123.57.209.16:8004/video/5.mp4";
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;
}
});
}
};


Laden…
Abbrechen
Speichern