add live option,encryption mode,encryption secrete for agora enter channel
正在显示
1 个修改的文件
包含
33 行增加
和
4 行删除
| @@ -1170,6 +1170,18 @@ | @@ -1170,6 +1170,18 @@ | ||
| 1170 | param += " UID="; | 1170 | param += " UID="; |
| 1171 | param += uid; | 1171 | param += uid; |
| 1172 | } | 1172 | } |
| 1173 | + if(document.getElementById("channel_profile").checked == true) { | ||
| 1174 | + param += " Live=1"; | ||
| 1175 | + } | ||
| 1176 | + var enc_secret = document.getElementById("enc_secrete").value; | ||
| 1177 | + if(enc_secret.length > 0 ) { | ||
| 1178 | + param += " Secrete="; | ||
| 1179 | + param += enc_secret; | ||
| 1180 | + var enc_mode = document.getElementById("enc_mode"); | ||
| 1181 | + var index = enc_mode.selectedIndex; | ||
| 1182 | + param += " EncMode="; | ||
| 1183 | + param += enc_mode.options[index].text; | ||
| 1184 | + } | ||
| 1173 | cmd.data = utf16to8(param); | 1185 | cmd.data = utf16to8(param); |
| 1174 | cmd.data_len = cmd.data.length; | 1186 | cmd.data_len = cmd.data.length; |
| 1175 | } | 1187 | } |
| @@ -1737,8 +1749,9 @@ | @@ -1737,8 +1749,9 @@ | ||
| 1737 | </tr> | 1749 | </tr> |
| 1738 | <tr> | 1750 | <tr> |
| 1739 | <td colspan="2">Channel Name</td> | 1751 | <td colspan="2">Channel Name</td> |
| 1740 | - <td colspan="4"> | 1752 | + <td colspan="2"> |
| 1741 | <input id="channel_name" size="40" /> | 1753 | <input id="channel_name" size="40" /> |
| 1754 | + <input type="checkbox" id='channel_profile'>live broadcast</input> | ||
| 1742 | </td> | 1755 | </td> |
| 1743 | </tr> | 1756 | </tr> |
| 1744 | <tr> | 1757 | <tr> |
| @@ -1747,7 +1760,18 @@ | @@ -1747,7 +1760,18 @@ | ||
| 1747 | <input id="uid" size="20" /> | 1760 | <input id="uid" size="20" /> |
| 1748 | </td> | 1761 | </td> |
| 1749 | </tr> | 1762 | </tr> |
| 1750 | - | 1763 | + <tr> |
| 1764 | + <td colspan="2">encryption mode</td> | ||
| 1765 | + <td colspan="4"> | ||
| 1766 | + <select id="enc_mode" name="enc_mode"><option value ="aes-128-xts">aes-128-xts</option><option value ="aes-256-xts">aes-256-xts</option></select> | ||
| 1767 | + </td> | ||
| 1768 | + </tr> | ||
| 1769 | + <tr> | ||
| 1770 | + <td>encryption secret</td> | ||
| 1771 | + <td colspan="4"> | ||
| 1772 | + <input id="enc_secrete" size="160"/> | ||
| 1773 | + </td> | ||
| 1774 | + </tr> | ||
| 1751 | <tr> | 1775 | <tr> |
| 1752 | <td colspan="2"><button type="button" id="enter_channel" onclick="javascript:onTestClick(this);">Enter Channel</button></td> | 1776 | <td colspan="2"><button type="button" id="enter_channel" onclick="javascript:onTestClick(this);">Enter Channel</button></td> |
| 1753 | <td colspan="2"><button type="button" id="leave_channel" onclick="javascript:onTestClick(this);">Leave Channel</button></td> | 1777 | <td colspan="2"><button type="button" id="leave_channel" onclick="javascript:onTestClick(this);">Leave Channel</button></td> |
| @@ -1757,12 +1781,17 @@ | @@ -1757,12 +1781,17 @@ | ||
| 1757 | <td><img src="images/spacer.gif" width="55" height="30" /></td> | 1781 | <td><img src="images/spacer.gif" width="55" height="30" /></td> |
| 1758 | </tr> | 1782 | </tr> |
| 1759 | <tr> | 1783 | <tr> |
| 1760 | - <td colspan="2">region</td> | 1784 | + <td colspan="2">region(x,y,w,h)</td> |
| 1761 | <td colspan="4"> | 1785 | <td colspan="4"> |
| 1762 | <input id="asc_region" size="40" /> | 1786 | <input id="asc_region" size="40" /> |
| 1763 | </td> | 1787 | </td> |
| 1764 | </tr> | 1788 | </tr> |
| 1765 | - | 1789 | + <tr> |
| 1790 | + <td colspan="2">fps</td> | ||
| 1791 | + <td colspan="4"> | ||
| 1792 | + <input id="asc_fps" size="10" /> | ||
| 1793 | + </td> | ||
| 1794 | + </tr> | ||
| 1766 | <tr> | 1795 | <tr> |
| 1767 | <td colspan="2"><button type="button" id="start_screen_share" onclick="javascript:onTestClick(this);">Start Screen share</button></td> | 1796 | <td colspan="2"><button type="button" id="start_screen_share" onclick="javascript:onTestClick(this);">Start Screen share</button></td> |
| 1768 | <td colspan="2"><button type="button" id="stop_screen_share" onclick="javascript:onTestClick(this);">Stop Screen Share</button></td> | 1797 | <td colspan="2"><button type="button" id="stop_screen_share" onclick="javascript:onTestClick(this);">Stop Screen Share</button></td> |
-
请 注册 或 登录 后发表评论