瀏覽代碼

修复使用ffmpeg拉流代理时ffmpeg cmd模板空白的bug

648540858 3 年之前
父節點
當前提交
28b1ed8b0d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      web_src/src/components/dialog/StreamProxyEdit.vue

+ 2 - 0
web_src/src/components/dialog/StreamProxyEdit.vue

@@ -207,6 +207,7 @@ export default {
       this.mediaServer.getOnlineMediaServerList((data)=>{
         this.mediaServerList = data.data;
         this.proxyParam.mediaServerId = this.mediaServerList[0].id
+        this.mediaServerIdChange()
       })
     },
     mediaServerIdChange:function (){
@@ -220,6 +221,7 @@ export default {
           }
         }).then(function (res) {
           that.ffmpegCmdList = res.data.data;
+          that.proxyParam.ffmpeg_cmd_key = Object.keys(res.data.data)[0];
         }).catch(function (error) {
           console.log(error);
         });