支持ABL风格地址

This commit is contained in:
lin
2025-09-18 18:53:12 +08:00
parent fb9ff67701
commit a064f27bf8
18 changed files with 346 additions and 548 deletions

View File

@@ -41,7 +41,7 @@ export function loadRecord(params) {
}
export function seek(params) {
const { mediaServerId, app, stream, seek, schema } = params
const { mediaServerId, app, stream, key, seek, schema } = params
return request({
method: 'get',
url: `/api/cloud/record/seek`,
@@ -49,6 +49,7 @@ export function seek(params) {
mediaServerId: mediaServerId,
app: app,
stream: stream,
key: key,
seek: seek,
schema: schema
}
@@ -56,7 +57,7 @@ export function seek(params) {
}
export function speed(params) {
const { mediaServerId, app, stream, speed, schema } = params
const { mediaServerId, app, stream, key, speed, schema } = params
return request({
method: 'get',
url: `/api/cloud/record/speed`,
@@ -64,6 +65,7 @@ export function speed(params) {
mediaServerId: mediaServerId,
app: app,
stream: stream,
key: key,
speed: speed,
schema: schema
}

View File

@@ -225,6 +225,7 @@ export default {
app: this.streamInfo.app,
stream: this.streamInfo.stream,
speed: this.playSpeed,
seek: this.playSeekValue,
schema: 'ts'
})
this.$refs.recordVideoPlayer.setPlaybackRate(this.playSpeed)
@@ -369,6 +370,7 @@ export default {
mediaServerId: this.streamInfo.mediaServerId,
app: this.streamInfo.app,
stream: this.streamInfo.stream,
key: this.streamInfo.key,
seek: this.playSeekValue,
schema: 'fmp4'
})

View File

@@ -237,9 +237,27 @@ export default {
const link = document.createElement('a')
link.target = '_blank'
if (location.protocol === 'https:') {
link.href = data.httpsPath + '&save_name=' + row.fileName
if (data.httpsPath) {
link.href = data.httpsPath + '&save_name=' + row.fileName
}else if (data.httpPath){
link.href = data.httpPath + '&save_name=' + row.fileName
}else {
this.$message.error({
showClose: true,
message: '获取下载地址失败'
})
}
} else {
link.href = data.httpPath + '&save_name=' + row.fileName
if (data.httpPath) {
link.href = data.httpPath + '&save_name=' + row.fileName
}else if (data.httpsPath){
link.href = data.httpsPath + '&save_name=' + row.fileName
}else {
this.$message.error({
showClose: true,
message: '获取下载地址失败'
})
}
}
link.click()
})