offer could be nil when migrating. (#3752)
This commit is contained in:
@@ -993,6 +993,10 @@ func (p *ParticipantImpl) synthesizeAddTrackRequests(offer webrtc.SessionDescrip
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *ParticipantImpl) updateRidsFromSDP(offer *webrtc.SessionDescription) {
|
func (p *ParticipantImpl) updateRidsFromSDP(offer *webrtc.SessionDescription) {
|
||||||
|
if offer == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
parsed, err := offer.Unmarshal()
|
parsed, err := offer.Unmarshal()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
@@ -2264,7 +2268,7 @@ func (p *ParticipantImpl) handleReceivedDataMessage(kind livekit.DataPacket_Kind
|
|||||||
p.pubLogger.Warnw("received unsupported data packet", nil, "payload", payload)
|
p.pubLogger.Warnw("received unsupported data packet", nil, "payload", payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SFU typically asserts the sender's identity. However, agents are able to
|
// SFU typically asserts the sender's identity. However, agents are able to
|
||||||
// publish data on behalf of the participant in case of transcriptions/text streams
|
// publish data on behalf of the participant in case of transcriptions/text streams
|
||||||
// in those cases we'd leave the existing identity on the data packet alone.
|
// in those cases we'd leave the existing identity on the data packet alone.
|
||||||
if overrideSenderIdentity {
|
if overrideSenderIdentity {
|
||||||
|
|||||||
Reference in New Issue
Block a user