unexport connClientUDPListener.read

This commit is contained in:
aler9
2020-09-06 14:44:22 +02:00
parent a4d59365fb
commit 648b33b13d
2 changed files with 2 additions and 3 deletions

View File

@@ -33,8 +33,7 @@ func (l *connClientUDPListener) close() {
l.pc.Close() l.pc.Close()
} }
// Read reads a frame from the publisher. func (l *connClientUDPListener) read(buf []byte) (int, error) {
func (l *connClientUDPListener) Read(buf []byte) (int, error) {
for { for {
n, addr, err := l.pc.ReadFrom(buf) n, addr, err := l.pc.ReadFrom(buf)
if err != nil { if err != nil {

View File

@@ -446,7 +446,7 @@ func (c *ConnClient) SetupUDP(u *url.URL, track *Track, rtpPort int,
rtcpListener.publisherPort = (*th.ServerPorts)[1] rtcpListener.publisherPort = (*th.ServerPorts)[1]
c.rtcpListeners[track.Id] = rtcpListener c.rtcpListeners[track.Id] = rtcpListener
return rtpListener.Read, rtcpListener.Read, res, nil return rtpListener.read, rtcpListener.read, res, nil
} }
// SetupTCP writes a SETUP request, that means that we want to read // SetupTCP writes a SETUP request, that means that we want to read