UNPKG

@jp-web/ts-sdk

Version:

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

47 lines (46 loc) 1.97 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="juphoon-sdk.webrtc.guest.debug.js"></script> <style> html { height: 100%; } </style> <script src="juphoon-sdk.webrtc.guest.debug.js?3467ef1fde251bea791a"></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="client-count">client个数</label> <input id="client-count" type="number" title="client个数" value="2"> <label for="group-number">呼叫组号</label> <input id="group-number" type="text" title="呼叫组号" value=""> <button onclick="getToken()" title="获取token">呼叫测试</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="call-all" onclick="callConAll()">全部呼叫</button> <button id="term-all" onclick="termConAll()">全部挂断</button> <button id="open-local-stream" onclick="openAllLocalStream()">开启全部本地视频</button> <button id="open-remote-stream" onclick="openAllRemoteStream()">开启全部远端视频</button> </fieldset> </body> </html> <script type="text/javascript" src="config.js"></script> <script type="text/javascript" src="index.js"></script>