Skip to content

Commit 170c763

Browse files
committed
Decapitalize
Signed-off-by: Šimon Brandner <[email protected]>
1 parent c9a8ed6 commit 170c763

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

pkg/conference/participant.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ type ParticipantID struct {
2121
}
2222

2323
type PublishedTrack struct {
24-
Track *webrtc.TrackLocalStaticRTP
25-
LastPLITimestamp atomic.Int64
24+
track *webrtc.TrackLocalStaticRTP
25+
lastPLITimestamp atomic.Int64
2626
}
2727

2828
// Participant represents a participant in the conference.

pkg/conference/peer_message_processor.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (c *Conference) processNewTrackPublishedMessage(participant *Participant, m
3030
return
3131
}
3232

33-
participant.publishedTracks[key] = PublishedTrack{Track: msg.Track}
33+
participant.publishedTracks[key] = PublishedTrack{track: msg.Track}
3434
c.resendMetadataToAllExcept(participant.id)
3535
}
3636

@@ -116,8 +116,8 @@ func (c *Conference) processDataChannelAvailableMessage(participant *Participant
116116
func (c *Conference) processForwardRTCPMessage(msg peer.RTCPReceived) {
117117
for _, participant := range c.participants {
118118
for _, publishedTrack := range participant.publishedTracks {
119-
if publishedTrack.Track.StreamID() == msg.StreamID && publishedTrack.Track.ID() == msg.TrackID {
120-
participant.peer.WriteRTCP(msg.Packets, msg.StreamID, msg.TrackID, publishedTrack.LastPLITimestamp.Load())
119+
if publishedTrack.track.StreamID() == msg.StreamID && publishedTrack.track.ID() == msg.TrackID {
120+
participant.peer.WriteRTCP(msg.Packets, msg.StreamID, msg.TrackID, publishedTrack.lastPLITimestamp.Load())
121121
}
122122
}
123123
}
@@ -126,8 +126,8 @@ func (c *Conference) processForwardRTCPMessage(msg peer.RTCPReceived) {
126126
func (c *Conference) processPLISentMessage(msg peer.PLISent) {
127127
for _, participant := range c.participants {
128128
for _, publishedTrack := range participant.publishedTracks {
129-
if publishedTrack.Track.StreamID() == msg.StreamID && publishedTrack.Track.ID() == msg.TrackID {
130-
publishedTrack.LastPLITimestamp.Store(msg.Timestamp)
129+
if publishedTrack.track.StreamID() == msg.StreamID && publishedTrack.track.ID() == msg.TrackID {
130+
publishedTrack.lastPLITimestamp.Store(msg.Timestamp)
131131
}
132132
}
133133
}

pkg/conference/state.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (c *Conference) removeParticipant(participantID ParticipantID) {
5757
// Remove the participant's tracks from all participants who might have subscribed to them.
5858
obsoleteTracks := []*webrtc.TrackLocalStaticRTP{}
5959
for _, publishedTrack := range participant.publishedTracks {
60-
obsoleteTracks = append(obsoleteTracks, publishedTrack.Track)
60+
obsoleteTracks = append(obsoleteTracks, publishedTrack.track)
6161
}
6262
for _, otherParticipant := range c.participants {
6363
otherParticipant.peer.UnsubscribeFrom(obsoleteTracks)
@@ -74,7 +74,7 @@ func (c *Conference) getAvailableStreamsFor(forParticipant ParticipantID) event.
7474
// Now, find out which of published tracks belong to the streams for which we have metadata
7575
// available and construct a metadata map for a given participant based on that.
7676
for _, track := range participant.publishedTracks {
77-
trackID, streamID := track.Track.ID(), track.Track.StreamID()
77+
trackID, streamID := track.track.ID(), track.track.StreamID()
7878

7979
if metadata, ok := streamsMetadata[streamID]; ok {
8080
metadata.Tracks[trackID] = event.CallSDPStreamMetadataTrack{}
@@ -99,7 +99,7 @@ func (c *Conference) getTracks(identifiers []event.SFUTrackDescription) []*webrt
9999
// Check if this participant has any of the tracks that we're looking for.
100100
for _, identifier := range identifiers {
101101
if track, ok := participant.publishedTracks[identifier]; ok {
102-
tracks = append(tracks, track.Track)
102+
tracks = append(tracks, track.track)
103103
}
104104
}
105105
}

0 commit comments

Comments
 (0)