提交 f7641b3e 编写于 作者: bo.dang's avatar bo.dang

拉流直播回显

上级 92b3fd34
...@@ -800,14 +800,14 @@ ...@@ -800,14 +800,14 @@
checkpullStream(){ checkpullStream(){
let flag = true; let flag = true;
if(this.pullFlag){ if(this.pullFlag){
if(this.formData.pullStreamRtmp == "" && this.formData.pullStreamHttp == ""){ if(this.formData.pullStreamRtmp == ""){
this.$message.warning("请输入APP拉流地址或H5拉流地址"); this.$message.warning("请输入APP拉流地址");
flag = false;
}
if(this.formData.pullStreamHttp == ""){
this.$message.warning("请输入H5拉流地址");
flag = false; flag = false;
} }
// if(this.formData.pullStreamHttp == ""){
// this.$message.warning("请输入H5拉流地址");
// flag = false;
// }
} }
return flag; return flag;
}, },
...@@ -979,6 +979,8 @@ ...@@ -979,6 +979,8 @@
// 封装数据 // 封装数据
initFormData(){ initFormData(){
this.formData.streamType = String(this.formData.streamType); this.formData.streamType = String(this.formData.streamType);
this.changeStreamType();
this.formData.scope = String(this.formData.scope); this.formData.scope = String(this.formData.scope);
if(this.formData.scope == "2"){ if(this.formData.scope == "2"){
this.isCollectShow = true; this.isCollectShow = true;
...@@ -1007,6 +1009,12 @@ ...@@ -1007,6 +1009,12 @@
}, },
// 封装数据 // 封装数据
setFormData(){ setFormData(){
if(this.formData.streamType == "1"){
this.formData.pullStreamRtmp = "";
this.formData.pullStreamHttp = "";
}
// 直播简介文字版 // 直播简介文字版
// this.formData.rtcIntroduces[0].type = 1; // this.formData.rtcIntroduces[0].type = 1;
// this.formData.rtcIntroduces[0].content = this.formData.textContent; // this.formData.rtcIntroduces[0].content = this.formData.textContent;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册