RFC4317 Session Description Protocol (SDP) Offer/Answer Examples 第二章节阅读笔记

本文记录了RFC4317中关于SDP Offer/Answer的若干实例,包括两个音频流的建立、音频视频会话的协商等,详细解析了音频和视频流的编码、地址和端口的设置,展示了如何在会话中添加或切换视频编解码器。
摘要由CSDN通过智能技术生成

在RFC4317中枚举了很多例子,对于常见的不再解释,这里只选择部分记录

(1)2.4.  Two Audio Streams

In this example, Alice wishes to establish separate audio streams, one for normal audio and the other for telephone-events.  Alice offers two separate streams, one audio with two codecs and the other with RFC 2833 [4] tones (for DTMF).  Bob accepts both audio streams choosing the iLBC codec and telephone-events.

    [Offer]
      v=0
      o=alice 2890844526 2890844526 IN IP4 host.atlanta.example.com
      s=
      c=IN IP4 host.atlanta.example.com
      t=0 0
      m=audio 49170 RTP/AVP 0 97
      a=rtpmap:0 PCMU/8000
      a=rtpmap:97 iLBC/8000
      m=audio 49172 RTP/AVP 98
      a=rtpmap:98 telephone-event/8000

      a=sendonly

这里将普通的音频流和DTMF按键流分成两个m行,在实际应用中,它们经常合在一起

      v=0
      o=alice 2890844526 2890844526 IN IP4 host.atlanta.example.com
      s=
      c=IN IP4 host.atlanta.example.com
      t=0 0
      m=audio 49170 RTP/AVP 0 97 98
      a=rtpmap:0 PCMU/8000
      a=rtpmap:97 iLBC/8000
      a=rtpmap:98 telephone-event/8000

      a=sendonly

(2) 2.5.  Audio and Video 4</

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值