linphone-PayloadType.java文件分析
来源:互联网 发布:edge浏览器打不开淘宝 编辑:程序博客网 时间:2024/06/05 05:10
说明
这个类主要是设置一些类型的参数,如MIME, RATE, FMTP等
功能
- 设置MIME
- 设置RATE
- 设置FMT
UML类图
PayloadType.java
package org.linphone.core;public interface PayloadType { /** * Obtain the registered mime-type (actually submime) of the PayloadType. For example: "H264", "speex"... * @return the (sub) mime type. */ String getMime(); /** * Return the RTP clockrate. It is usually the same as the audio sampling rate, and 90000 for video payload types. * @return */ int getRate(); /** * Set format parameter string wished for incoming stream. It is advertised in SDP. * @param fmtp the fmtp string, like "octet-align=1;mode-set=4,5,6,7" */ void setRecvFmtp(String fmtp); /** * Return the format parameters wished for incoming stream. * @return the format parameter string. */ String getRecvFmtp(); /** * Set the format parameter effective for the outgoing stream (unusual). * @param fmtp */ void setSendFmtp(String fmtp); /** * Return the format parameter effective for the outgoing stream. * @return */ String getSendFmtp();}
PayloadTypeImpl.java
package org.linphone.core;class PayloadTypeImpl implements PayloadType { public final long nativePtr; private native String toString(long ptr); private native String getMime(long ptr); private native int getRate(long ptr); protected PayloadTypeImpl(long aNativePtr) { nativePtr = aNativePtr; } public int getRate() { return getRate(nativePtr); } public String getMime() { return getMime(nativePtr); } public String toString() { return toString(nativePtr); } private native void setRecvFmtp(long ptr, String fmtp); @Override public void setRecvFmtp(String fmtp) { setRecvFmtp(nativePtr,fmtp); } private native String getRecvFmtp(long ptr); @Override public String getRecvFmtp() { return getRecvFmtp(nativePtr); } private native void setSendFmtp(long ptr, String fmtp); @Override public void setSendFmtp(String fmtp) { setSendFmtp(nativePtr,fmtp); } private native String getSendFmtp(long ptr); @Override public String getSendFmtp() { return getSendFmtp(nativePtr); }}
0 0
- linphone-PayloadType.java文件分析
- linphone-LinphoneManager.java文件分析
- linphone-LinphoneCoreFactory.java文件分析
- linphone-LinphoneAddress.java文件分析
- linphone-LpConfig.java文件分析
- linphone-LinponeCore.java文件分析
- linphone-LinphoneContent.java文件分析
- linphone-LinphoneInfoMessage.java文件分析
- linphone-PresenceModel.java文件分析
- linphone-PresenceActivity.java文件分析
- linphone-PresenceService.java文件分析
- linphone-PresencePerson.java文件分析
- linphone-PresenceNote.java文件分析
- linphone-Tunnelconfig.java文件分析
- linphone-KeepAliveReceiver.java文件分析
- linphone-BootReceiver.java文件分析
- linphone-NetworkManger.java文件分析
- linphone-LinphonePreferences.java文件分析
- Linux Smack 学习总结
- 自动装箱(autoboxing)与自动拆箱语(auto-unboxing)法糖
- poj3393
- EasyUI 树形菜单网格
- nginx的哈希表结构--ngx_hash_t
- linphone-PayloadType.java文件分析
- 适配器模式
- TCP/IP详解 笔记1
- 155. Min Stack
- 第一章
- Java中的sleep()和wait()的区别
- 和BEM的战斗:10个常见问题及如何避免
- 对于实现一个优先级队列程序的注解
- 块元素、行内元素,替换元素、非替换元素