支持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

@@ -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()
})