remove StreamType

This commit is contained in:
aler9
2021-11-12 16:45:49 +01:00
committed by Alessandro Ros
parent 029ebd5dea
commit 9ba761298d
4 changed files with 6 additions and 43 deletions

View File

@@ -1438,7 +1438,7 @@ func (c *Client) doSetup(
rtpListener.remotePort = thRes.ServerPorts[0]
}
rtpListener.trackID = trackID
rtpListener.streamType = StreamTypeRTP
rtpListener.isRTP = true
cct.udpRTPListener = rtpListener
rtcpListener.remoteReadIP = c.nconn.RemoteAddr().(*net.TCPAddr).IP
@@ -1448,7 +1448,7 @@ func (c *Client) doSetup(
rtcpListener.remotePort = thRes.ServerPorts[1]
}
rtcpListener.trackID = trackID
rtcpListener.streamType = StreamTypeRTCP
rtcpListener.isRTP = false
cct.udpRTCPListener = rtcpListener
case TransportUDPMulticast:
@@ -1457,7 +1457,7 @@ func (c *Client) doSetup(
rtpListener.remoteZone = ""
rtpListener.remotePort = thRes.Ports[0]
rtpListener.trackID = trackID
rtpListener.streamType = StreamTypeRTP
rtpListener.isRTP = true
cct.udpRTPListener = rtpListener
rtcpListener.remoteReadIP = c.nconn.RemoteAddr().(*net.TCPAddr).IP
@@ -1465,7 +1465,7 @@ func (c *Client) doSetup(
rtcpListener.remoteZone = ""
rtcpListener.remotePort = thRes.Ports[1]
rtcpListener.trackID = trackID
rtcpListener.streamType = StreamTypeRTCP
rtcpListener.isRTP = false
cct.udpRTCPListener = rtcpListener
case TransportTCP: