Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ data class VideoCaptureParameter(
data class VideoEncoding(
val maxBitrate: Int,
val maxFps: Int,
val temporalLayersNumber: Int? = null ,
val minBitrate: Int? = null ,
val isAdaptiveAudioPacketTimeEnabled: Boolean? = null ,
) {
fun toRtpEncoding(
rid: String? = null,
Expand All @@ -48,6 +51,18 @@ data class VideoEncoding(
maxBitrateBps = maxBitrate
maxFramerate = maxFps

temporalLayersNumber?.let {
numTemporalLayers = it
}

minBitrate?.let {
minBitrateBps = it
}

isAdaptiveAudioPacketTimeEnabled?.let {
adaptiveAudioPacketTime = it
}

// only set on the full track
if (scaleDownBy == 1.0) {
networkPriority = 3 // high, from priority.h in webrtc
Expand Down