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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user