Skip to content

Commit c9a8ed6

Browse files
committed
ForwardRTCP -> RTCPReceived
Signed-off-by: Šimon Brandner <[email protected]>
1 parent 5d666eb commit c9a8ed6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pkg/conference/messsage_processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (c *Conference) processPeerMessage(message common.Message[ParticipantID, pe
6262
c.processDataChannelMessage(participant, msg)
6363
case peer.DataChannelAvailable:
6464
c.processDataChannelAvailableMessage(participant, msg)
65-
case peer.ForwardRTCP:
65+
case peer.RTCPReceived:
6666
c.processForwardRTCPMessage(msg)
6767
case peer.PLISent:
6868
c.processPLISentMessage(msg)

pkg/conference/peer_message_processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (c *Conference) processDataChannelAvailableMessage(participant *Participant
113113
})
114114
}
115115

116-
func (c *Conference) processForwardRTCPMessage(msg peer.ForwardRTCP) {
116+
func (c *Conference) processForwardRTCPMessage(msg peer.RTCPReceived) {
117117
for _, participant := range c.participants {
118118
for _, publishedTrack := range participant.publishedTracks {
119119
if publishedTrack.Track.StreamID() == msg.StreamID && publishedTrack.Track.ID() == msg.TrackID {

pkg/peer/messages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type DataChannelMessage struct {
4040

4141
type DataChannelAvailable struct{}
4242

43-
type ForwardRTCP struct {
43+
type RTCPReceived struct {
4444
Packets []rtcp.Packet
4545
StreamID string
4646
TrackID string

pkg/peer/peer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (p *Peer[ID]) SubscribeTo(track *webrtc.TrackLocalStaticRTP) error {
112112
p.logger.WithError(err).Warn("failed to read RTCP on track")
113113
}
114114

115-
p.sink.Send(ForwardRTCP{Packets: packets, TrackID: track.ID(), StreamID: track.StreamID()})
115+
p.sink.Send(RTCPReceived{Packets: packets, TrackID: track.ID(), StreamID: track.StreamID()})
116116
}
117117
}()
118118

0 commit comments

Comments
 (0)