rename to packettrailerfeature to match protocol

This commit is contained in:
David Chen
2026-03-13 12:10:10 -07:00
parent 253854cd91
commit 0b6641ffb5
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -39,7 +39,7 @@ import (
"github.com/livekit/protocol/utils/mono"
"github.com/livekit/livekit-server/pkg/sfu/buffer"
"github.com/livekit/livekit-server/pkg/sfu/payloadtrailer"
"github.com/livekit/livekit-server/pkg/sfu/packettrailer"
"github.com/livekit/livekit-server/pkg/sfu/bwe"
"github.com/livekit/livekit-server/pkg/sfu/ccutils"
"github.com/livekit/livekit-server/pkg/sfu/connectionquality"
@@ -1060,7 +1060,7 @@ func (d *DownTrack) WriteRTP(extPkt *buffer.ExtPacket, layer int32) int32 {
payload = payload[:len(tp.codecBytes)+n]
if d.params.StripPayloadTrailer {
if strip := payloadtrailer.StripTrailer(payload, tp.marker); strip > 0 {
if strip := packettrailer.StripTrailer(payload, tp.marker); strip > 0 {
payload = payload[:len(payload)-strip]
}
}
@@ -2184,7 +2184,7 @@ func (d *DownTrack) retransmitPacket(epm *extPacketMeta, sourcePkt []byte, isPro
}
if d.params.StripPayloadTrailer {
if strip := payloadtrailer.StripTrailer(payload[rtxOffset:], epm.marker); strip > 0 {
if strip := packettrailer.StripTrailer(payload[rtxOffset:], epm.marker); strip > 0 {
payload = payload[:len(payload)-strip]
}
}
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package payloadtrailer
package packettrailer
var Magic = [4]byte{'L', 'K', 'T', 'S'}
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package payloadtrailer
package packettrailer
import (
"encoding/binary"