Skip to content

Commit

Permalink
feat: Add signaling for VLA RTP header extension. (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Dec 12, 2024
1 parent 818ab43 commit 012e063
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ class Config {
val av1DependencyDescriptor: RtpExtensionConfig =
RtpExtensionConfig("jicofo.codec.rtp-extensions.av1-dependency-descriptor")

val videoLayersAllocation: RtpExtensionConfig =
RtpExtensionConfig("jicofo.codec.rtp-extensions.video-layers-allocation")

@JvmField
val tof: RtpExtensionConfig =
RtpExtensionConfigWithLegacy("$LEGACY_BASE.ENABLE_TOF", "jicofo.codec.rtp-extensions.tof")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@ class CodecUtil {
fun createVideoRtpHdrExtExtensions(
options: OfferOptions = OfferOptions()
): Collection<RTPHdrExtPacketExtension> = buildList {
if (config.videoLayersAllocation.enabled) {
// a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/video-layers-allocation00
add(
RTPHdrExtPacketExtension().apply {
id = config.videoLayersAllocation.id.toString()
uri = URI.create("http://www.webrtc.org/experiments/rtp-hdrext/video-layers-allocation00")
}
)
}
if (config.av1DependencyDescriptor.enabled()) {
// https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension
val dependencyDescriptorExt = RTPHdrExtPacketExtension()
Expand Down
4 changes: 4 additions & 0 deletions jicofo-selector/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ jicofo {
enabled = true
id = 11
}
video-layers-allocation {
enabled = false
id = 12
}
tof {
// TOF is currently disabled, because we don't support it in the bridge
// (and currently clients seem to not use it when abs-send-time is
Expand Down

0 comments on commit 012e063

Please sign in to comment.