Skip to content

adding ability to control local video track encode parameters#1136

Open
chenosaurus wants to merge 1 commit into
mainfrom
dc/exp/local_video_bitrate_control
Open

adding ability to control local video track encode parameters#1136
chenosaurus wants to merge 1 commit into
mainfrom
dc/exp/local_video_bitrate_control

Conversation

@chenosaurus
Copy link
Copy Markdown
Contributor

@chenosaurus chenosaurus commented Jun 5, 2026

  • Add hooks into local video track to set encoding limits
  • Add to local_video subscriber example to demonstrate controlling encoding parameters on publisher

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

Changeset

The following package versions will be affected by this PR:

Package Bump
libwebrtc patch
livekit patch

@chenosaurus chenosaurus marked this pull request as ready for review June 5, 2026 17:50
}

#[derive(Debug, Deserialize, Serialize)]
struct SetEncodingLimitsRequest {
Copy link
Copy Markdown
Contributor

@ladvoc ladvoc Jun 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Consider putting common structs in a module and share between the two binaries.

Copy link
Copy Markdown
Contributor

@xianshijing-lk xianshijing-lk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two questions

self.sys_handle
.set_parameters(parameters.into())
.set_parameters(native_parameters)
.map_err(|e| unsafe { sys_err::ffi::RtcError::from(e.what()).into() })
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do these params mean for simulcast, adaptive streaming, and dynacast ?

const SET_VIDEO_ENCODING_LIMITS_METHOD: &str = "set-video-encoding-limits";

#[derive(Debug, Deserialize, Serialize)]
struct SetEncodingLimitsRequest {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this designed to cap this track overall ? or we should consider per encoding / layer limits due to simulcast ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants