支持ABL风格地址
This commit is contained in:
@@ -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'
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user