【问题标题】:What is payload-type tag means in jingle IQ?jingle IQ中的payload-type标签是什么意思?
【发布时间】:2020-10-20 20:22:08
【问题描述】:

当初始化 jingle call 时,我们应该发送一个如下所示的 IQ。我仍然不明白有效载荷类型的使用以及列出它们时要考虑哪些标准。我试图从 android 文档中读取Supported media formats,但我没有看到与有效负载类型的任何关系。在我阅读了RTP payload formats 之后,我明白了什么是有效载荷。 我想知道是否可以在我的设备中列出可用的有效负载类型,或者我应该在我的项目中添加其他依赖项以便列出它们。

<iq from='romeo@montague.lit/orchard'
    id='ph37a419'
    to='juliet@capulet.lit/balcony'
    type='set'>
  <jingle xmlns='urn:xmpp:jingle:1'
          action='session-initiate'
          initiator='romeo@montague.lit/orchard'
          sid='a73sjjvkla37jfea'>
    <content creator='initiator' name='voice'>
      <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='audio'>
        <payload-type id='96' name='speex' clockrate='16000'/>
        <payload-type id='97' name='speex' clockrate='8000'/>
        <payload-type id='18' name='G729'/>
        <payload-type id='0' name='PCMU' />
        <payload-type id='103' name='L16' clockrate='16000' channels='2'/>
        <payload-type id='98' name='x-ISAC' clockrate='8000'/>
      </description>
    </content>
  </jingle>
</iq>

【问题讨论】:

    标签: java android-studio xmpp ejabberd


    【解决方案1】:

    我猜 XMPP XEP-0167: Jingle RTP Sessions: Application Format 规格会更好看:

    应用程序格式由包含在包装器&lt;description/&gt; 元素中的一个或多个编码组成,该元素由'urn:xmpp:jingle:apps:rtp:1' 命名空间限定(有关增加版本号的可能性,请参阅命名空间版本控制)。在 RFC 4566 的语言中,每个编码都是有效载荷类型;因此,每个&lt;payload-type/&gt; 元素都指定了可用于 RTP 流的编码,如下例所示。

    【讨论】:

    • 感谢您的回复。那些编解码器不依赖于android,对吗?还是用户发送者(端点)必须在发送之前将音频/视频放入提供的编解码器中? (我是网络新手)
    • 您指定您可以处理的内容 - 您受到库及其功能的限制。
    猜你喜欢
    • 1970-01-01
    • 2015-08-20
    • 1970-01-01
    • 1970-01-01
    • 2016-01-31
    • 2011-04-16
    • 2020-04-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多