优化录像下载,避免wvp代理使用双份流量

This commit is contained in:
648540858
2021-11-22 17:30:15 +08:00
parent 0199676a6d
commit dda68ac044
3 changed files with 23 additions and 13 deletions

View File

@@ -287,11 +287,13 @@ export default {
// return `http://${baseZlmApi}/${streamInfo.app}/${streamInfo.streamId}.flv`;
if (location.protocol === "https:") {
if (streamInfo.wss_flv === null) {
this.$message({
showClose: true,
message: '媒体服务器未配置ssl端口',
type: 'error'
});
console.error("媒体服务器未配置ssl端口, 使用http端口")
// this.$message({
// showClose: true,
// message: '媒体服务器未配置ssl端口, ',
// type: 'error'
// });
return streamInfo.ws_flv
}else {
return streamInfo.wss_flv;
}