chore: fix a large number of spelling issues (#4147)
Signed-off-by: changgesi <changgesi@outlook.com>
This commit is contained in:
@@ -2290,7 +2290,7 @@ func (p *ParticipantImpl) onReceivedDataMessage(kind livekit.DataPacket_Kind, da
|
||||
return
|
||||
|
||||
case MigrationDataCacheStateDone:
|
||||
// see the continous message, drop the cache
|
||||
// see the continuous message, drop the cache
|
||||
p.reliableDataInfo.migrateInPubDataCache.Store(nil)
|
||||
}
|
||||
}
|
||||
@@ -3130,7 +3130,7 @@ func (p *ParticipantImpl) mediaTrackReceived(track sfu.TrackRemote, rtpReceiver
|
||||
|
||||
// if the addTrackRequest is sent before participant active then it means the client tries to publish
|
||||
// before fully connected, in this case we only record the time when the participant is active since
|
||||
// we want this metric to represent the time cost by pubilshing.
|
||||
// we want this metric to represent the time cost by publishing.
|
||||
if activeAt := p.lastActiveAt.Load(); activeAt != nil && createdAt.Before(*activeAt) {
|
||||
createdAt = *activeAt
|
||||
}
|
||||
|
||||
+1
-1
@@ -681,7 +681,7 @@ func (r *Room) onSyncState(participant types.LocalParticipant, state *livekit.Sy
|
||||
}
|
||||
|
||||
// synthesize a track setting for each disabled track,
|
||||
// can be set before addding subscriptions,
|
||||
// can be set before adding subscriptions,
|
||||
// in fact it is done before so that setting can be updated immediately upon subscription.
|
||||
for _, trackSid := range state.TrackSidsDisabled {
|
||||
participant.UpdateSubscribedTrackSettings(livekit.TrackID(trackSid), &livekit.UpdateTrackSettings{Disabled: true})
|
||||
|
||||
@@ -352,7 +352,7 @@ func (t *SubscribedTrack) applySettings() {
|
||||
|
||||
t.settingsLock.Lock()
|
||||
if settingsVersion != t.settingsVersion {
|
||||
// a newer settings has superceded this one
|
||||
// a newer settings has superseded this one
|
||||
t.settingsLock.Unlock()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -539,7 +539,7 @@ func (m *SubscriptionManager) reconcileSubscription(s *mediaTrackSubscription) {
|
||||
// and the clean up path to handle removing subscription from the subscription map.
|
||||
// It is possible that the track is re-published before subscribed track is closed.
|
||||
// That could create a new subscription and a duplicate entry in SDP.
|
||||
// Waiting for susbcribed track close would ensure that the track is removed from
|
||||
// Waiting for subscribed track close would ensure that the track is removed from
|
||||
// the peer connection before re-published track is re-subscribed and added back to the SDP.
|
||||
return
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ type PCTransport struct {
|
||||
// transceivers (senders) waiting for SetRemoteDescription (offer) to happen before
|
||||
// SetCodecPreferences can be invoked on them.
|
||||
// Pion adapts codecs/payload types from remote description.
|
||||
// If SetCodecPreferences are done before the remote desctiption is processed,
|
||||
// If SetCodecPreferences are done before the remote description is processed,
|
||||
// it is possible that the transceiver gets payload types from media engine.
|
||||
// Subssequently if the peer sends an offer with different payload type for the
|
||||
// same codec, there could be two payload types for the same codec and the wrong
|
||||
|
||||
@@ -93,7 +93,7 @@ func (r *WrappedReceiver) StreamID() string {
|
||||
// isAvailable: returns true if given codec is a potential codec from publisher or if an existing published codec can be translated
|
||||
// needsPublish: indicates if the codec is needed from publisher, some combinations can be achieved via codec translation internally,
|
||||
//
|
||||
// example: unecrypted opus -> RED translation and vice-versa can be done without the need for publisher to send the other codec.
|
||||
// example: unencrypted opus -> RED translation and vice-versa can be done without the need for publisher to send the other codec.
|
||||
func (r *WrappedReceiver) DetermineReceiver(codec webrtc.RTPCodecCapability) (isAvailable bool, needsPublish bool) {
|
||||
r.lock.Lock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user