# rtp
This python library provides a means to decode, encode, and interact with RTP packets. It is intended to be used together with other libraries that decode, encode, and interact with the payload bitstreams. This library does not provide any network functionality.
## Installation
```bash
pip install rtp
```
## Example usage
```python
from rtp import RTP, Extension, PayloadType
from copy import deepcopy
baseRTP = RTP(
marker=True,
payloadType=PayloadType.L16_2chan,
extension=Extension(
startBits=getExtStartBits(),
headerExtension=getExtBody()
),
csrcList=getCSRCList()
)
thisRTPBitstream = thisRTP.toBytearray()
while runing:
nextRTP = deepcopy(baseRTP)
nextRTP.sequenceNumber += 1
nextRTP.timestamp = getNextTimestamp()
nextRTP.payload = getNextPayload()
transmit(nextRTP)
```
```python
from rtp import RTP
decodedPayload = MyPayloadDecoder(
RTP().fromBytearray(getNextPacket()).payload)
render(decodedPayload)
```
## Contributing
We desire that contributors of pull requests have signed, and submitted via email, a [Contributor Licence Agreement (CLA)](http://www.bbc.co.uk/opensource/cla/rfc-8759-cla.docx), which is based on the Apache CLA.
The purpose of this agreement is to clearly define the terms under which intellectual property has been contributed to the BBC and thereby allow us to defend the project should there be a legal dispute regarding the software at some future time.
If you haven't signed and emailed the agreement yet then the project owners will contact you using the contact info with the pull request.
## License
See [LICENSE](LICENSE).
## Authors
* James Sandford
For further information, contact <cloudfit-opensource@rd.bbc.co.uk>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共23个文件
py:11个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:rtp-0.0.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
rtp-0.0.2.tar.gz (23个子文件)
rtp-0.0.2
MANIFEST.in 63B
PKG-INFO 2KB
tests
test_payloadType.py 3KB
test_csrcList.py 4KB
test_rtp.py 16KB
test_extension.py 5KB
tox.ini 784B
LICENSE 11KB
rtp.egg-info
PKG-INFO 2KB
requires.txt 15B
SOURCES.txt 391B
top_level.txt 4B
dependency_links.txt 1B
setup.cfg 38B
setup.py 2KB
README.md 2KB
rtp
py.typed 0B
errors.py 672B
__init__.py 812B
rtp.py 9KB
extension.py 4KB
payloadType.py 5KB
csrcList.py 3KB
共 23 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功