-
Notifications
You must be signed in to change notification settings - Fork 168
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
Changes from 5 commits
6aa8ae8
cceb6ea
ad8dc8f
7cec42b
112e09f
d1f5ccf
f4dddc2
3c2d3ee
743b9d2
c498be5
1515dd0
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 |
|---|---|---|
|
|
@@ -98,6 +98,7 @@ impl From<DisconnectReason> for proto::DisconnectReason { | |
| DisconnectReason::UserUnavailable => Self::UserUnavailable, | ||
| DisconnectReason::UserRejected => Self::UserRejected, | ||
| DisconnectReason::SipTrunkFailure => Self::SipTrunkFailure, | ||
| DisconnectReason::ConnectionTimeout => Self::ConnectionTimeout, | ||
|
Member
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. Can you create a similar conversion for the TrackFeature? We're currently only relying on the integer, which is unsafe and will panic as soon as the proto adds a new one
Contributor
Author
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. @theomonnom I added conversions in both directions and added AudioTrackFeature to the rtc prelude |
||
| } | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1694,6 +1694,7 @@ pub enum DisconnectReason { | |
| UserRejected = 12, | ||
| /// SIP protocol failure or unexpected response | ||
| SipTrunkFailure = 13, | ||
| ConnectionTimeout = 14, | ||
|
Contributor
Author
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. Can we simply add this without breaking users' code? |
||
| } | ||
| impl DisconnectReason { | ||
| /// String value of the enum field names used in the ProtoBuf definition. | ||
|
|
@@ -1716,6 +1717,7 @@ impl DisconnectReason { | |
| DisconnectReason::UserUnavailable => "USER_UNAVAILABLE", | ||
| DisconnectReason::UserRejected => "USER_REJECTED", | ||
| DisconnectReason::SipTrunkFailure => "SIP_TRUNK_FAILURE", | ||
| DisconnectReason::ConnectionTimeout => "CONNECTION_TIMEOUT", | ||
| } | ||
| } | ||
| /// Creates an enum from field names used in the ProtoBuf definition. | ||
|
|
@@ -1735,6 +1737,7 @@ impl DisconnectReason { | |
| "USER_UNAVAILABLE" => Some(Self::UserUnavailable), | ||
| "USER_REJECTED" => Some(Self::UserRejected), | ||
| "SIP_TRUNK_FAILURE" => Some(Self::SipTrunkFailure), | ||
| "CONNECTION_TIMEOUT" => Some(Self::ConnectionTimeout), | ||
| _ => None, | ||
| } | ||
| } | ||
|
|
||
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