Use ParticipantTelemetryListener of LocalParticipant. (#4342)
Had made a change in remote participant case to not have telemetry listener as telemetry does not apply to remote participant. But, that listener ended up getting used for subscriber and became a null listener. Use the listener of the subscriber participant for subscribed tracks.
This commit is contained in:
@@ -929,6 +929,14 @@ func (p *ParticipantImpl) TelemetryGuard() *telemetry.ReferenceGuard {
|
||||
return p.telemetryGuard
|
||||
}
|
||||
|
||||
func (p *ParticipantImpl) GetTelemetryListener() types.ParticipantTelemetryListener {
|
||||
if p.params.TelemetryListener == nil {
|
||||
return &types.NullParticipantTelemetryListener{}
|
||||
}
|
||||
|
||||
return p.params.TelemetryListener
|
||||
}
|
||||
|
||||
func (p *ParticipantImpl) AddOnClose(key string, callback func(types.LocalParticipant)) {
|
||||
if p.isClosed.Load() {
|
||||
go callback(p)
|
||||
|
||||
Reference in New Issue
Block a user