-
Notifications
You must be signed in to change notification settings - Fork 218
feat(livekit): add a stereo option to TrackPublishOptions #1330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,6 +121,10 @@ pub struct TrackPublishOptions { | |
| pub video_codec: VideoCodec, | ||
| pub dtx: bool, | ||
| pub red: bool, | ||
| /// Publish the audio track as stereo. The server only signals `stereo=1;maxaveragebitrate=510000` | ||
| /// to the publisher (and `sprop-stereo=1` to subscribers) when the track carries the | ||
| /// `TF_STEREO` audio feature, so stereo sources are otherwise downmixed to mono by the encoder. | ||
| pub stereo: bool, | ||
|
Comment on lines
+124
to
+127
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Release notes entry missing for the new publishing option The repository requires every pull request to include a changeset file describing the change and the crates to bump, but this change adds a new public publishing option ( Missing /.changeset entry required by AGENTS.md
Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
| pub simulcast: bool, | ||
| /// Custom simulcast layer presets (low, mid). When set, these override the | ||
| /// SDK's built-in defaults which reduce fps on lower layers. | ||
|
|
@@ -161,6 +165,7 @@ impl Default for TrackPublishOptions { | |
| video_codec: VideoCodec::VP8, | ||
| dtx: true, | ||
| red: true, | ||
| stereo: false, | ||
| simulcast: true, | ||
| simulcast_layers: None, | ||
| source: TrackSource::Unknown, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding this FFI proto field is not enough for the checked-in Node package:
livekit-ffi-node-bindings/proto/room_pb.jsstill definesTrackPublishOptionsonly through field 13, and the.d.tstype likewise has nostereoproperty. In contexts using the committed@livekit/rtc-ffi-bindingspackage, a Node caller cannot serialize tag 14 fromnew TrackPublishOptions({ stereo: true }), so the FFI conversion here never seesopts.stereoand Node still cannot opt into stereo until those generated bindings are updated.Useful? React with 👍 / 👎.