Comments (5)
Originally, in RFC 3550, there was a port for the RTP packets and a different port for the RTCP packets, and the flag indicates on which port this packet was received. Now, RTP and RTCP packets can optionally be multiplexed, and to figure out if it's an RTP or RTCP packet one needs to check the second byte: if its value lies between 200 and 204, it's considered to be an RTCP packet, otherwise an RTP packet.
Perhaps I should change that boolean to an enum which has 'RTP', 'RTCP' and 'Guess' options, where the first two cause the current behaviour and the third looks at that second byte?
from jrtplib.
from jrtplib.
After some thought it seemed easier to just add a different constructor which omits that boolean parameter. I've added it in a branch rawpacketguess, does that work for you?
from jrtplib.
I've just checked it, works perfectly.
from jrtplib.
Ok great, thanks for testing. I've added it to master
from jrtplib.
Related Issues (20)
- sendto system call return value ignored HOT 2
- Why traverse all fd instead of fd with data readable? Using "traverse all fd" strategy will lead to the following problems. When there are a large number of fd with no data readable in the m_destSockets queue, the sys cpu occupancy rate reaches 100%. HOT 2
- How to handle RTCP using custom port? HOT 1
- Why do I always return - 155 when I use the create function? HOT 1
- Locking does not seem to work properly in Windows HOT 2
- Compilation error when building with -DCMAKE_BUILD_TYPE=Release HOT 1
- getloginrtest wont work HOT 1
- Support for libc++? HOT 1
- Please make a release
- pkg-config output is inconsistent with example5.cpp
- pkg-config shouldn't add libsrtp2.so to the link flags
- how to use client by rtp over tcp
- How to set sort buffer for receiver
- Add proper logging
- Can you transfer this project to me for maintenance? HOT 2
- How to use cmake to make lib/include folders to integrate into other projecs?
- Maximum packet size is 65535 bytes? How will I stream images? HOT 3
- The Create function block.求助! HOT 1
- RTPTCPTransmitter::PollSocket implementation problem
- error, RTPTCPTransmitter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jrtplib.