Use Write instead of WriteRTP in the downTrack interface.

This commit is contained in:
Juliusz Chroboczek
2021-05-11 23:48:17 +02:00
parent b09dba0e26
commit c53cc20d26
4 changed files with 23 additions and 48 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ package conn
import (
"errors"
"github.com/pion/rtp"
"github.com/pion/webrtc/v3"
)
@@ -38,7 +37,7 @@ type Down interface {
// Type DownTrack represents a track in the server to client direction.
type DownTrack interface {
WriteRTP(packat *rtp.Packet) error
Write(buf []byte) (int, error)
SetTimeOffset(ntp uint64, rtp uint32)
SetCname(string)
GetMaxBitrate() uint64