ultravideo / uvgRTP

An open-source library for RTP/SRTP media delivery
BSD 2-Clause "Simplified" License
296 stars 84 forks source link

RTP header extension #202

Open JairoBit opened 11 months ago

JairoBit commented 11 months ago

Hi,

I would like to use the header extension for my project for send and receive a status and ID. I found the "struct ext_header" declaration but I didn't find a way to use it in the library.

Have any example of use? Or still need implementation?

tampsa commented 11 months ago

Hi,

Sending packets with a header extension is not yet implemented. As RFC 3550 section 3.5.1 suggests, the header extension is intended for limited use only, and in most situations the information should be carried in the payload section of the packet. This would be a nice feature to have sometime in the future, but it is hard to say when we have time to implement this.

-Heikki

jrsnen commented 11 months ago

In other words, currently, uvgRTP should be able to receive any header extensions, but we have no plans to support sending custom header extension. We try to keep uvgRTP API at a slightly higher level than allowing the user to send any kind of data, but we are not opposed to PRs that add support for new RFCs that use header extensions.

Hard to tell, what would be the best way to determine ID/status without knowing more about the situation. There is SSRC for stream specific identification and timestamps for telling different frames from each other.

BR, Joni Räsänen