ultravideo / uvgRTP

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

Adding dynamic payload type to examples #55

Closed jrsnen closed 3 years ago

jrsnen commented 3 years ago

Some codecs use predefined payload types, but many codecs use a dynamic payload type. Currently there is no way to set the dynamic payload number for Opus, VVC, HEVC or AVC, when all of these use a dynamic number. Instead the library forces the number to be some predetermined value.

See more details here

altonen commented 3 years ago

There is RCC_DYN_PAYLOAD_TYPE which you can use to define a dynamic payload type used for a stream. This simply overrides the the default payload set in src/rtp.cc with the value that user gives.

jrsnen commented 3 years ago

@altonen Thank for the info! In that case, this info could be added to the configuration and/or sending examples.