<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 初始化 ~~~ AnyChatQueue.queueInit(initParams); ~~~ **接口參數簡介** | 名稱 | 類型 | 說明 | 是否必須 | | --- | --- | --- | --- | | initParams | object |初始化配置類 | 是 | **配置類簡介** 通用屬性 | 名稱 |類型 |說明 | 是否必須 | | --- | --- | --- | --- | | serverIp | string | 服務器地址 | 是 | | serverPort |number | 端口號 | 是 | | nickName | string | 用戶昵稱 |是 | | strUserId | string | 用戶字符串ID | 否 | | appId | string |應用ID | 否 (智能排隊時必填)| | sign | string |簽名字符串 | 否 (簽名登錄時必填) | | timeStamp | number | 時間戳 | 否(簽名登錄時必填) | | businessHall | string | 營業廳ID | 是 | | queueId | string | 隊列ID | 是 | | localRenderId | string | 本地視頻顯示區域 | 是 | | remoteRenderId | string | 遠程視頻顯示區域 | 是 | | onQueueInitSuccess | function | 初始化成功回調 | 是 | | onQueueError |function | 失敗回調 | 是 | | onQueueStatus | function | 排隊狀態回調 | 是 | | onVideoCallStatus | function |視頻通話狀態回調 | 是 | **回調說明** | 名稱 |參數說明 |接口說明 | 備注 | | --- | --- | --- | --- | | onQueueInitSuccess | 初始化成功 | anychat初始化》 登錄》進入營業廳成功 | result.msg 結果描述;<br>data.areaId 營業廳id;<br>data.areaName 營業廳名稱;<br>data.areaDesc 營業廳描述;<br>data.guestCount 當前營業廳訪客的用戶數(沒有排入隊列的用戶);<br>data.agentCount 營業廳內的坐席用戶數;<br>data.idleAgentCount 營業廳內的空閑坐席用戶數;<br>data.queningUserCount 當前營業廳正在排隊的用戶數量;<br>data.queueCount 當前營業廳的隊列數量;<br>data.queues 營業廳下的隊列列表 | | onQueueError |失敗回調 | result(操作結果) | result.code 結果碼; <br>result.msg 結果描述,原因可能有簽名錯誤,重復登錄,網絡異常斷開... | | onQueueStatus | 排隊狀態 | result(操作結果)<br> data(排隊信息) | result.code為1表示排隊成功,<br>為0表示離開隊列成功;<br>為2客戶出隊列呼叫坐席<br>data.userNumInQueue 排隊的人數;<br>data.currentPos 當前排在第幾位;<br>data.waitingTime 自己在隊列中的等待時間(單位:秒)| | onVideoCallStatus | 視頻通話狀態 | result(操作結果) | result.code為1表示通話開始,<br>為0表示通話結束 | **示例代碼** ~~~ var initParams ={ serverIp: "h5service.anychat.net.cn", //服務器地址 (必填項)h5service.anychat.net.cn serverPort: 9940, //端口號(必填項) 9940 nickName: 'AnyChat’, //用戶昵稱(必填項) strUserId: "", //用戶字符串ID appId: "", //應用ID(智能排隊時必填) sign: "", //簽名字符串(簽名登錄時必填) timeStamp: 0, //時間戳(簽名登錄時必填) businessHall:'955790',//營業廳ID(必填項) queueId:'95579001',//隊列ID(必填項) localRenderId:'Client-Area', //本地視頻顯示區域(必填項) remoteRenderId:'Agent-Area', //遠程視頻顯示區域(必填項) onQueueInitSuccess:onQueueInitSuccess, //初始化成功 (鏈接-》登錄-》進入營業廳->開始進入隊列) onQueueError:onQueueError, //失敗 onQueueStatus:onQueueStatus, //排隊狀態 1:進入隊列成功 0:離開隊列成功 2:出隊列呼叫坐席 onVideoCallStatus:onVideoCallStatus, //視頻通話狀態 1:開始通話 0:結束通話 }; AnyChatQueue.queueInit(initParams); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看