胡斌

rename the parameter string of agora enter channel and screen share

正在显示 1 个修改的文件 包含 9 行增加9 行删除
... ... @@ -1192,34 +1192,34 @@
var param = "";
var appid = document.getElementById("app_id").value;
if(appid.length > 0) {
param += " AppID=";
param += "appid=";
param += appid;
}
var token = document.getElementById("token").value;
if(token.length > 0 ) {
param += " Token=";
param += " token=";
param += token;
}
var chname = document.getElementById("channel_name").value;
if(chname.length > 0 ) {
param += " Channel=";
param += " channel=";
param += chname;
}
var uid = document.getElementById("uid").value;
if(uid.length > 0 ) {
param += " UID=";
param += " uid=";
param += uid;
}
if(document.getElementById("channel_profile").checked == true) {
param += " Live=1";
param += " live=1";
}
var enc_secret = document.getElementById("enc_secrete").value;
if(enc_secret.length > 0 ) {
param += " Secrete=";
param += " secrete=";
param += enc_secret;
var enc_mode = document.getElementById("enc_mode");
var index = enc_mode.selectedIndex;
param += " EncMode=";
param += " encmode=";
param += enc_mode.options[index].text;
}
cmd.data = utf16to8(param);
... ... @@ -1234,12 +1234,12 @@
var param = "";
var asc_region = document.getElementById("asc_region").value;
if(asc_region.length > 0){
param += "Rect=";
param += "rect=";
param += asc_region;
}
var fps = document.getElementById("asc_fps").value;
if(fps.length > 0) {
param += " Fps=";
param += " fps=";
param += fps;
}
cmd.data = utf16to8(param);
... ...