don't send unknown signal message to rust sdk with protocol 9 (#2860)

rust sdk can't handle unknown message (ErrorResponse and
TrackSubscribed)
This commit is contained in:
cnderrauber
2024-07-16 00:03:54 +05:30
committed by GitHub
parent e815c99eac
commit e7424e5a8e
2 changed files with 13 additions and 1 deletions
+9
View File
@@ -92,6 +92,15 @@ func (c ClientInfo) ComplyWithCodecOrderInSDPAnswer() bool {
return !((c.isLinux() || c.isAndroid()) && c.isFirefox())
}
// Rust SDK can't decode unknown signal message (TrackSubscribed and ErrorResponse)
func (c ClientInfo) SupportTrackSubscribedEvent() bool {
return !(c.ClientInfo.GetSdk() == livekit.ClientInfo_RUST && c.ClientInfo.GetProtocol() < 10)
}
func (c ClientInfo) SupportErrorResponse() bool {
return c.SupportTrackSubscribedEvent()
}
// compareVersion compares a semver against the current client SDK version
// returning 1 if current version is greater than version
// 0 if they are the same, and -1 if it's an earlier version