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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容