rename the parameter string of agora enter channel and screen share
正在显示
1 个修改的文件
包含
9 行增加
和
9 行删除
| @@ -1192,34 +1192,34 @@ | @@ -1192,34 +1192,34 @@ | ||
| 1192 | var param = ""; | 1192 | var param = ""; |
| 1193 | var appid = document.getElementById("app_id").value; | 1193 | var appid = document.getElementById("app_id").value; |
| 1194 | if(appid.length > 0) { | 1194 | if(appid.length > 0) { |
| 1195 | - param += " AppID="; | 1195 | + param += "appid="; |
| 1196 | param += appid; | 1196 | param += appid; |
| 1197 | } | 1197 | } |
| 1198 | var token = document.getElementById("token").value; | 1198 | var token = document.getElementById("token").value; |
| 1199 | if(token.length > 0 ) { | 1199 | if(token.length > 0 ) { |
| 1200 | - param += " Token="; | 1200 | + param += " token="; |
| 1201 | param += token; | 1201 | param += token; |
| 1202 | } | 1202 | } |
| 1203 | var chname = document.getElementById("channel_name").value; | 1203 | var chname = document.getElementById("channel_name").value; |
| 1204 | if(chname.length > 0 ) { | 1204 | if(chname.length > 0 ) { |
| 1205 | - param += " Channel="; | 1205 | + param += " channel="; |
| 1206 | param += chname; | 1206 | param += chname; |
| 1207 | } | 1207 | } |
| 1208 | var uid = document.getElementById("uid").value; | 1208 | var uid = document.getElementById("uid").value; |
| 1209 | if(uid.length > 0 ) { | 1209 | if(uid.length > 0 ) { |
| 1210 | - param += " UID="; | 1210 | + param += " uid="; |
| 1211 | param += uid; | 1211 | param += uid; |
| 1212 | } | 1212 | } |
| 1213 | if(document.getElementById("channel_profile").checked == true) { | 1213 | if(document.getElementById("channel_profile").checked == true) { |
| 1214 | - param += " Live=1"; | 1214 | + param += " live=1"; |
| 1215 | } | 1215 | } |
| 1216 | var enc_secret = document.getElementById("enc_secrete").value; | 1216 | var enc_secret = document.getElementById("enc_secrete").value; |
| 1217 | if(enc_secret.length > 0 ) { | 1217 | if(enc_secret.length > 0 ) { |
| 1218 | - param += " Secrete="; | 1218 | + param += " secrete="; |
| 1219 | param += enc_secret; | 1219 | param += enc_secret; |
| 1220 | var enc_mode = document.getElementById("enc_mode"); | 1220 | var enc_mode = document.getElementById("enc_mode"); |
| 1221 | var index = enc_mode.selectedIndex; | 1221 | var index = enc_mode.selectedIndex; |
| 1222 | - param += " EncMode="; | 1222 | + param += " encmode="; |
| 1223 | param += enc_mode.options[index].text; | 1223 | param += enc_mode.options[index].text; |
| 1224 | } | 1224 | } |
| 1225 | cmd.data = utf16to8(param); | 1225 | cmd.data = utf16to8(param); |
| @@ -1234,12 +1234,12 @@ | @@ -1234,12 +1234,12 @@ | ||
| 1234 | var param = ""; | 1234 | var param = ""; |
| 1235 | var asc_region = document.getElementById("asc_region").value; | 1235 | var asc_region = document.getElementById("asc_region").value; |
| 1236 | if(asc_region.length > 0){ | 1236 | if(asc_region.length > 0){ |
| 1237 | - param += "Rect="; | 1237 | + param += "rect="; |
| 1238 | param += asc_region; | 1238 | param += asc_region; |
| 1239 | } | 1239 | } |
| 1240 | var fps = document.getElementById("asc_fps").value; | 1240 | var fps = document.getElementById("asc_fps").value; |
| 1241 | if(fps.length > 0) { | 1241 | if(fps.length > 0) { |
| 1242 | - param += " Fps="; | 1242 | + param += " fps="; |
| 1243 | param += fps; | 1243 | param += fps; |
| 1244 | } | 1244 | } |
| 1245 | cmd.data = utf16to8(param); | 1245 | cmd.data = utf16to8(param); |
-
请 注册 或 登录 后发表评论