SSL update 2
This commit is contained in:
parent
d0052ac4ca
commit
c56ac28738
@ -312,7 +312,8 @@
|
|||||||
let currentCameraGroup = 1;
|
let currentCameraGroup = 1;
|
||||||
const camerasPerGroup = 5;
|
const camerasPerGroup = 5;
|
||||||
var totalCameras = 12 - 1;
|
var totalCameras = 12 - 1;
|
||||||
const baseURL = "http://{{VIRTUAL_HOST}}/http/live.flv";
|
const isSecure = window.location.protocol === "https:";
|
||||||
|
const baseURL = "https://{{VIRTUAL_HOST}}/http/live.flv";
|
||||||
|
|
||||||
function stopAllCameras() {
|
function stopAllCameras() {
|
||||||
flvPlayers.forEach(player => {
|
flvPlayers.forEach(player => {
|
||||||
|
@ -205,7 +205,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
function playVideo(channel) {
|
function playVideo(channel) {
|
||||||
const url = `http://localhost:8081/playback?url=http%3A%2F%2F{{VIRTUAL_HOST}}%2Fhttp%2Fplayback.flv%3Fserial%3D{{Serial}}%26channel%3D${channel}%26quality%3D1%26queryTime%3D{{QueryTime}}%26startTime%3D{{StartTime}}%26endTime%3D{{EndTime}}`;
|
const url = `https://localhost:8081/playback?url=http%3A%2F%2F{{VIRTUAL_HOST}}%2Fhttp%2Fplayback.flv%3Fserial%3D{{Serial}}%26channel%3D${channel}%26quality%3D1%26queryTime%3D{{QueryTime}}%26startTime%3D{{StartTime}}%26endTime%3D{{EndTime}}`;
|
||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -863,7 +863,7 @@ endVideoTimeInput.addEventListener("blur", sendPostRequest);
|
|||||||
|
|
||||||
const serial = selectedDevice.value;
|
const serial = selectedDevice.value;
|
||||||
|
|
||||||
const url = `http://localhost:8081/export?url=http%3A%2F%2F{{VIRTUAL_HOST}}%2Fhttp%2Fdownload.flv%3Fserial%3D${serial}%26channel%3D${channel}%26queryTime%3D${selectedDate}%26startTime%3D${startTime}%26endTime%3D${endTime}%26recordID%3D${resData.dataId}`;
|
const url = `https://localhost:8081/export?url=http%3A%2F%2F{{VIRTUAL_HOST}}%2Fhttp%2Fdownload.flv%3Fserial%3D${serial}%26channel%3D${channel}%26queryTime%3D${selectedDate}%26startTime%3D${startTime}%26endTime%3D${endTime}%26recordID%3D${resData.dataId}`;
|
||||||
document.getElementById("exportLoading").style.display = 'none';
|
document.getElementById("exportLoading").style.display = 'none';
|
||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
}
|
}
|
||||||
|
@ -683,7 +683,7 @@ videoTimeInput.addEventListener("blur", sendPostRequest);
|
|||||||
|
|
||||||
selectedChannel = channel;
|
selectedChannel = channel;
|
||||||
|
|
||||||
const url = `http://localhost:8081/playback?url=http%3A%2F%2F{{VIRTUAL_HOST}}%2Fhttp%2Fplayback.flv%3Fserial%3D${serial}%26channel%3D${channel}%26quality%3D1%26queryTime%3D${selectedDate}%26startTime%3D${startTime}%26endTime%3D${endTime}`;
|
const url = `https://localhost:8081/playback?url=http%3A%2F%2F{{VIRTUAL_HOST}}%2Fhttp%2Fplayback.flv%3Fserial%3D${serial}%26channel%3D${channel}%26quality%3D1%26queryTime%3D${selectedDate}%26startTime%3D${startTime}%26endTime%3D${endTime}`;
|
||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user