Commit 28b1ed8b0dbf92f1ca37d348ae54d227f902ec49
1 parent
bde0e136
修复使用ffmpeg拉流代理时ffmpeg cmd模板空白的bug
Showing
1 changed file
with
2 additions
and
0 deletions
web_src/src/components/dialog/StreamProxyEdit.vue
| @@ -207,6 +207,7 @@ export default { | @@ -207,6 +207,7 @@ export default { | ||
| 207 | this.mediaServer.getOnlineMediaServerList((data)=>{ | 207 | this.mediaServer.getOnlineMediaServerList((data)=>{ |
| 208 | this.mediaServerList = data.data; | 208 | this.mediaServerList = data.data; |
| 209 | this.proxyParam.mediaServerId = this.mediaServerList[0].id | 209 | this.proxyParam.mediaServerId = this.mediaServerList[0].id |
| 210 | + this.mediaServerIdChange() | ||
| 210 | }) | 211 | }) |
| 211 | }, | 212 | }, |
| 212 | mediaServerIdChange:function (){ | 213 | mediaServerIdChange:function (){ |
| @@ -220,6 +221,7 @@ export default { | @@ -220,6 +221,7 @@ export default { | ||
| 220 | } | 221 | } |
| 221 | }).then(function (res) { | 222 | }).then(function (res) { |
| 222 | that.ffmpegCmdList = res.data.data; | 223 | that.ffmpegCmdList = res.data.data; |
| 224 | + that.proxyParam.ffmpeg_cmd_key = Object.keys(res.data.data)[0]; | ||
| 223 | }).catch(function (error) { | 225 | }).catch(function (error) { |
| 224 | console.log(error); | 226 | console.log(error); |
| 225 | }); | 227 | }); |