add packet trailer stripping support (#4361)

* bump protocol version to 17 to enable packet trailer stripping functionality
* check subscriber protocol version for trailer stripping
This commit is contained in:
David Chen
2026-03-23 13:33:42 -07:00
committed by GitHub
parent 0e3d765d03
commit a5333a86bb
10 changed files with 407 additions and 26 deletions
+4
View File
@@ -518,6 +518,10 @@ func (t *MediaTrackReceiver) IsEncrypted() bool {
return t.TrackInfo().Encryption != livekit.Encryption_NONE
}
func (t *MediaTrackReceiver) HasPacketTrailer() bool {
return len(t.TrackInfo().GetPacketTrailerFeatures()) > 0
}
func (t *MediaTrackReceiver) AddOnClose(f func(isExpectedToResume bool)) {
if f == nil {
return