icedemo怎么樣才能跑起來?

*help幫助
<pre><code>`
Usage: icedemo [optons]
icedemo v2.5.5 by pjsip.org

General options:
--comp-cnt, -c N Component count (default=1)
--nameserver, -n IP Configure nameserver to activate DNS SRV
resolution
--max-host, -H N Set max number of host candidates to N
--regular, -R Use regular nomination (default aggressive)
--log-file, -L FILE Save output to log FILE
--help, -h Display this screen.

STUN related options:
--stun-srv, -s HOSTDOM Enable srflx candidate by resolving to STUN server.
HOSTDOM may be a "host_or_ip[:port]" or a domain
name if DNS SRV resolution is used.

TURN related options:
--turn-srv, -t HOSTDOM Enable relayed candidate by using this TURN server.
HOSTDOM may be a "host_or_ip[:port]" or a domain
name if DNS SRV resolution is used.
--turn-tcp, -T Use TCP to connect to TURN server
--turn-username, -u UID Set TURN username of the credential to UID
--turn-password, -p PWD Set password of the credential to WPWD
--turn-fingerprint, -F Use fingerprint for outgoing TURN requests
`</code></pre>

*演示

  1. 啟動兩個實例:
    <pre><code>icedemo1 -s stun.pjsip.org</code></pre><pre><code>icedemo2 -s stun.pjsip.org</code></pre>
    顯示:
    <pre><code>+----------------------------------------------------------------------+ | M E N U | +---+------------------------------------------------------------------+ | c | create Create the instance | | d | destroy Destroy the instance | | i | init o|a Initialize ICE session as offerer or answerer | | e | stop End/stop ICE session | | s | show Display local ICE info | | r | remote Input remote ICE info | | b | start Begin ICE negotiation | | x | send <compid> .. Send data to remote | +---+------------------------------------------------------------------+ | h | help * Help! * | | q | quit Quit | +----------------------------------------------------------------------+ Input:</code></pre>
  2. 創建ice instance
    c 雙方實例都需要進行創建
  3. 初始化請求應答方
    一方 i o,表示發起方
    另一方i a,表示應答方
  4. 輸入雙方remote sdp信息
    r ....
    <b>sdp信息雙方各自用s命令可以顯示出來,互相拷貝下,讓雙發知道對方的信息即可。</b>
  5. 開始協商
    b。 注意,這里必須是擔任<b>發起方</b>角色的用戶才可以發起協商。
  6. 發送數據
    x component_id data,component_id=1
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容