upgrade to pion/webrtc v4 (#3213)

This commit is contained in:
cnderrauber
2024-11-28 16:05:38 +08:00
committed by GitHub
parent baf47db834
commit 54f9f7de51
52 changed files with 144 additions and 119 deletions
+4
View File
@@ -101,6 +101,10 @@ func (c ClientInfo) SupportErrorResponse() bool {
return c.SupportTrackSubscribedEvent()
}
func (c ClientInfo) SupportSctpZeroChecksum() bool {
return !(c.isGo() && c.compareVersion("2.1.3") <= 0)
}
// 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