Don't require media sections when joining (#4535)
* Don't require media sections when joining Client except browser (rust/libwebrtc is known) could have problem to fire ontrack event when reuses extra media section to subscribe track, so disable this feature in server side and let client determine if extra media sections are needed. * lint
This commit is contained in:
@@ -80,9 +80,6 @@ const (
|
|||||||
|
|
||||||
PingIntervalSeconds = 5
|
PingIntervalSeconds = 5
|
||||||
PingTimeoutSeconds = 15
|
PingTimeoutSeconds = 15
|
||||||
|
|
||||||
audioSectionsCountWithJoinResponse = 3
|
|
||||||
videoSectionsCountWithJoinResponse = 3
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -226,7 +223,6 @@ type ParticipantParams struct {
|
|||||||
EnableDataTracks bool
|
EnableDataTracks bool
|
||||||
EnableRTPStreamRestartDetection bool
|
EnableRTPStreamRestartDetection bool
|
||||||
ForceBackupCodecPolicySimulcast bool
|
ForceBackupCodecPolicySimulcast bool
|
||||||
RequireMediaSectionWithJoinResponse bool
|
|
||||||
DisableTransceiverReuseForE2EE bool
|
DisableTransceiverReuseForE2EE bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,10 +67,6 @@ func (p *ParticipantImpl) SendJoinResponse(joinResponse *livekit.JoinResponse) e
|
|||||||
p.queuedUpdates = nil
|
p.queuedUpdates = nil
|
||||||
p.updateLock.Unlock()
|
p.updateLock.Unlock()
|
||||||
|
|
||||||
if p.params.RequireMediaSectionWithJoinResponse && p.params.UseSinglePeerConnection {
|
|
||||||
p.sendMediaSectionsRequirement(audioSectionsCountWithJoinResponse, videoSectionsCountWithJoinResponse)
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(queuedUpdates) > 0 {
|
if len(queuedUpdates) > 0 {
|
||||||
return p.SendParticipantUpdate(queuedUpdates)
|
return p.SendParticipantUpdate(queuedUpdates)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -440,10 +440,7 @@ func newPeerConnection(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lf := pionlogger.NewLoggerFactory(params.Logger)
|
se.LoggerFactory = pionlogger.NewLoggerFactory(params.Logger)
|
||||||
if lf != nil {
|
|
||||||
se.LoggerFactory = lf
|
|
||||||
}
|
|
||||||
|
|
||||||
ir := &interceptor.Registry{}
|
ir := &interceptor.Registry{}
|
||||||
if params.IsSendSide {
|
if params.IsSendSide {
|
||||||
|
|||||||
Reference in New Issue
Block a user