UNPKG

@jp-web/ts-sdk

Version:

视频客服,视频会议Web端及微信小程序端SDK

49 lines (48 loc) 2.25 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> html { height: 100%; } </style> <script src="juphoon-sdk.webrtc.conference.debug.js?bb8c0a75d6c5b9a3c40e"></script></head> <body style="height: 100%;margin: 0;"> <fieldset> <legend>操作</legend> <label for="environment-address" title="服务环境">服务环境</label> <input id="environment-address" type="text"/> <button onclick="window.open(document.getElementById('environment-address').value, '_blank')" title="信任地址">信任地址 </button> <br> <label for="appKey" title="appKey">appKey</label> <input id="appKey" type="text"/> <br> <label for="token-account">创建client的个数</label> <input id="token-account" type="number" title="获取的token数量" value="1" min="1"> <label for="origin-room-number">请输入初始房间号</label> <input type="number" id="origin-room-number" title="初始房间号" value="123"> <label for="count-down">设置倒计时秒数</label> <input type="number" id="count-down" value="30" min="5" title="倒计时秒数"> <button onclick="getToken()" title="获取token">获取token并创建client</button> <button onclick="clearInfo()">清空数据</button> </fieldset> <fieldset style="max-height: calc(100% - 180px)"> <legend style="font-size: 14px;">client</legend> <div style="height: 100%; overflow: auto; font-size: 12px;"> <ul id="client-list" style="list-style: none;padding-left: 0;"></ul> </div> </fieldset> <fieldset> <button id="join-all" onclick="joinConAll()" disabled>全部加入</button> <button id="leave-all" onclick="leaveConAll()" disabled>全部离开</button> <button id="stop-all" onclick="stopConAll()" disabled>全部结束</button> <button id="open-local-stream" onclick="openAllLocalStream()" disabled>开启全部本地视频</button> <button id="open-remote-stream" onclick="openAllRemoteStream()" disabled>开启全部远端视频</button> </fieldset> </body> </html> <script type="text/javascript" src="config.js"></script> <script type="text/javascript" src="index.js"></script>