|
@@ -317,7 +317,7 @@ export default {
|
|
that.tracksLoading = true;
|
|
that.tracksLoading = true;
|
|
that.tracksNotLoaded = false;
|
|
that.tracksNotLoaded = false;
|
|
if (tab.name === "codec") {
|
|
if (tab.name === "codec") {
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: '/zlm/' +this.mediaServerId+ '/index/api/getMediaInfo?vhost=__defaultVhost__&schema=rtsp&app='+ this.app +'&stream='+ this.streamId
|
|
url: '/zlm/' +this.mediaServerId+ '/index/api/getMediaInfo?vhost=__defaultVhost__&schema=rtsp&app='+ this.app +'&stream='+ this.streamId
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
@@ -439,7 +439,7 @@ export default {
|
|
convertStop: function(callback) {
|
|
convertStop: function(callback) {
|
|
var that = this;
|
|
var that = this;
|
|
that.$refs.videoPlayer.pause()
|
|
that.$refs.videoPlayer.pause()
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
url: '/api/play/convertStop/' + this.convertKey
|
|
url: '/api/play/convertStop/' + this.convertKey
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
@@ -510,7 +510,7 @@ export default {
|
|
let that = this;
|
|
let that = this;
|
|
var startTime = this.videoHistory.date + " 00:00:00";
|
|
var startTime = this.videoHistory.date + " 00:00:00";
|
|
var endTime = this.videoHistory.date + " 23:59:59";
|
|
var endTime = this.videoHistory.date + " 23:59:59";
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: '/api/gb_record/query/' + this.deviceId + '/' + this.channelId + '?startTime=' + startTime + '&endTime=' + endTime
|
|
url: '/api/gb_record/query/' + this.deviceId + '/' + this.channelId + '?startTime=' + startTime + '&endTime=' + endTime
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
@@ -552,7 +552,7 @@ export default {
|
|
that.playRecord(row);
|
|
that.playRecord(row);
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: '/api/playback/start/' + this.deviceId + '/' + this.channelId + '?startTime=' + row.startTime + '&endTime=' +
|
|
url: '/api/playback/start/' + this.deviceId + '/' + this.channelId + '?startTime=' + row.startTime + '&endTime=' +
|
|
row.endTime
|
|
row.endTime
|
|
@@ -578,7 +578,7 @@ export default {
|
|
stopPlayRecord: function (callback) {
|
|
stopPlayRecord: function (callback) {
|
|
this.$refs[this.activePlayer].pause();
|
|
this.$refs[this.activePlayer].pause();
|
|
this.videoUrl = '';
|
|
this.videoUrl = '';
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: '/api/playback/stop/' + this.deviceId + "/" + this.channelId + "/" + this.streamId
|
|
url: '/api/playback/stop/' + this.deviceId + "/" + this.channelId + "/" + this.streamId
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
@@ -602,7 +602,7 @@ export default {
|
|
|
|
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: '/api/gb_record/download/start/' + this.deviceId + '/' + this.channelId + '?startTime=' + row.startTime + '&endTime=' +
|
|
url: '/api/gb_record/download/start/' + this.deviceId + '/' + this.channelId + '?startTime=' + row.startTime + '&endTime=' +
|
|
row.endTime + '&downloadSpeed=4'
|
|
row.endTime + '&downloadSpeed=4'
|
|
@@ -624,7 +624,7 @@ export default {
|
|
stopDownloadRecord: function (callback) {
|
|
stopDownloadRecord: function (callback) {
|
|
this.$refs[this.activePlayer].pause();
|
|
this.$refs[this.activePlayer].pause();
|
|
this.videoUrl = '';
|
|
this.videoUrl = '';
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: '/api/gb_record/download/stop/' + this.deviceId + "/" + this.channelId+ "/" + this.streamId
|
|
url: '/api/gb_record/download/stop/' + this.deviceId + "/" + this.channelId+ "/" + this.streamId
|
|
}).then((res)=> {
|
|
}).then((res)=> {
|
|
@@ -634,7 +634,7 @@ export default {
|
|
ptzCamera: function (command) {
|
|
ptzCamera: function (command) {
|
|
console.log('云台控制:' + command);
|
|
console.log('云台控制:' + command);
|
|
let that = this;
|
|
let that = this;
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
url: '/api/ptz/control/' + this.deviceId + '/' + this.channelId + '?command=' + command + '&horizonSpeed=' + this.controSpeed + '&verticalSpeed=' + this.controSpeed + '&zoomSpeed=' + this.controSpeed
|
|
url: '/api/ptz/control/' + this.deviceId + '/' + this.channelId + '?command=' + command + '&horizonSpeed=' + this.controSpeed + '&verticalSpeed=' + this.controSpeed + '&zoomSpeed=' + this.controSpeed
|
|
}).then(function (res) {});
|
|
}).then(function (res) {});
|
|
@@ -646,7 +646,7 @@ export default {
|
|
presetPosition: function (cmdCode, presetPos) {
|
|
presetPosition: function (cmdCode, presetPos) {
|
|
console.log('预置位控制:' + this.presetPos + ' : 0x' + cmdCode.toString(16));
|
|
console.log('预置位控制:' + this.presetPos + ' : 0x' + cmdCode.toString(16));
|
|
let that = this;
|
|
let that = this;
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=0¶meter2=' + presetPos + '&combindCode2=0'
|
|
url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=0¶meter2=' + presetPos + '&combindCode2=0'
|
|
}).then(function (res) {});
|
|
}).then(function (res) {});
|
|
@@ -656,7 +656,7 @@ export default {
|
|
let parameter2 = parameter % 256;
|
|
let parameter2 = parameter % 256;
|
|
let combindCode2 = Math.floor(parameter / 256) * 16;
|
|
let combindCode2 = Math.floor(parameter / 256) * 16;
|
|
console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter2.toString(16) + ' 0x' + combindCode2.toString(16));
|
|
console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter2.toString(16) + ' 0x' + combindCode2.toString(16));
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter2 + '&combindCode2=' + combindCode2
|
|
url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter2 + '&combindCode2=' + combindCode2
|
|
}).then(function (res) {});
|
|
}).then(function (res) {});
|
|
@@ -664,7 +664,7 @@ export default {
|
|
setCommand: function (cmdCode, groupNum, parameter) {
|
|
setCommand: function (cmdCode, groupNum, parameter) {
|
|
let that = this;
|
|
let that = this;
|
|
console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter.toString(16) + ' 0x0');
|
|
console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter.toString(16) + ' 0x0');
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter + '&combindCode2=0'
|
|
url: '/api/ptz/front_end_command/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter + '&combindCode2=0'
|
|
}).then(function (res) {});
|
|
}).then(function (res) {});
|
|
@@ -725,7 +725,7 @@ export default {
|
|
},
|
|
},
|
|
gbPlay(){
|
|
gbPlay(){
|
|
console.log('前端控制:播放');
|
|
console.log('前端控制:播放');
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: '/api/playback/resume/' + this.streamId
|
|
url: '/api/playback/resume/' + this.streamId
|
|
}).then((res)=> {
|
|
}).then((res)=> {
|
|
@@ -734,14 +734,14 @@ export default {
|
|
},
|
|
},
|
|
gbPause(){
|
|
gbPause(){
|
|
console.log('前端控制:暂停');
|
|
console.log('前端控制:暂停');
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: '/api/playback/pause/' + this.streamId
|
|
url: '/api/playback/pause/' + this.streamId
|
|
}).then(function (res) {});
|
|
}).then(function (res) {});
|
|
},
|
|
},
|
|
gbScale(command){
|
|
gbScale(command){
|
|
console.log('前端控制:倍速 ' + command);
|
|
console.log('前端控制:倍速 ' + command);
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: `/api/playback/speed/${this.streamId }/${command}`
|
|
url: `/api/playback/speed/${this.streamId }/${command}`
|
|
}).then(function (res) {});
|
|
}).then(function (res) {});
|
|
@@ -755,7 +755,7 @@ export default {
|
|
let minutes = showTime.getMinutes();
|
|
let minutes = showTime.getMinutes();
|
|
let seconds = showTime.getSeconds();
|
|
let seconds = showTime.getSeconds();
|
|
this.showTimeText = (hour < 10?("0" + hour):hour) + ":" + (minutes<10?("0" + minutes):minutes) + ":" + (seconds<10?("0" + seconds):seconds)
|
|
this.showTimeText = (hour < 10?("0" + hour):hour) + ":" + (minutes<10?("0" + minutes):minutes) + ":" + (seconds<10?("0" + seconds):seconds)
|
|
- this.$axios({
|
|
|
|
|
|
+ this.$axios.axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: `/api/playback/seek/${this.streamId }/` + Math.floor(this.seekTime * val / 100000)
|
|
url: `/api/playback/seek/${this.streamId }/` + Math.floor(this.seekTime * val / 100000)
|
|
}).then( (res)=> {
|
|
}).then( (res)=> {
|