-
Notifications
You must be signed in to change notification settings - Fork 113
Bump protocol to v1.37.1 and add audio_features handling #634
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
Conversation
| UserRejected = 12, | ||
| /// SIP protocol failure or unexpected response | ||
| SipTrunkFailure = 13, | ||
| ConnectionTimeout = 14, |
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.
Can we simply add this without breaking users' code?
| } | ||
|
|
||
| async fn write(&self, bytes: &[u8]) -> StreamResult<()> { | ||
| async fn write(&self, bytes: &'a [u8]) -> StreamResult<()> { |
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.
the lifetime annotation here was needed to make it compile locally on my setup (v1.83) - not sure why this wasn't failing on CI, any drawbacks around adding this?
livekit-api/src/services/egress.rs
Outdated
| // TODO implement webhooks | ||
| webhooks: Default::default(), |
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.
The reason why we have to do this everytime is because we're using the wrong syntax
| // TODO implement webhooks | |
| webhooks: Default::default(), | |
| ..Default::default(), |
|
Is the AudioTrackFeature already done? I don't see it anywhere in the code |
|
Ah, I assumed trackInfo just gets passed as is, but it doesn't. Will add handling for audio track features |
|
@theomonnom I added handling for audio_features both on the rust side and FFI |
| DisconnectReason::UserUnavailable => Self::UserUnavailable, | ||
| DisconnectReason::UserRejected => Self::UserRejected, | ||
| DisconnectReason::SipTrunkFailure => Self::SipTrunkFailure, | ||
| DisconnectReason::ConnectionTimeout => Self::ConnectionTimeout, |
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.
Can you create a similar conversion for the TrackFeature?
impl From< AudioTrackFeature > for proto:: AudioTrackFeature {
We're currently only relying on the integer, which is unsafe and will panic as soon as the proto adds a new one
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.
@theomonnom I added conversions in both directions and added AudioTrackFeature to the rtc prelude
Main motivation is to get the new pre connect buffer AudioTrackFeature added for usage in livekit/agents#2171