We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
peerConnection.SetLocalDescription(webrtc.SessionDescription{Type: webrtc.SDPTypeRollback})
The connection state is rolled back, and the local and remote descriptions are cleared.
InvalidModificationError: invalid SDP type supplied to SetLocalDescription(): rollback
It seems that this section of peerconection.go might be the issue:
peerconection.go
if desc.SDP == "" { switch desc.Type { case SDPTypeAnswer, SDPTypePranswer: desc.SDP = pc.lastAnswer case SDPTypeOffer: desc.SDP = pc.lastOffer default: return &rtcerr.InvalidModificationError{ Err: fmt.Errorf("%w: %s", errPeerConnSDPTypeInvalidValueSetLocalDescription, desc.Type), } } }
The SDPTypeRollback case isn't handled here, despite being handled in the underlying SetDescription function:
SDPTypeRollback
SetDescription
case SDPTypeRollback: nextState, err = checkNextSignalingState(cur, SignalingStateStable, setLocal, sd.Type) if err == nil { pc.pendingLocalDescription = nil }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Your environment.
What did you do?
What did you expect?
The connection state is rolled back, and the local and remote descriptions are cleared.
What happened?
Hypothesis
It seems that this section of
peerconection.go
might be the issue:The
SDPTypeRollback
case isn't handled here, despite being handled in the underlyingSetDescription
function:The text was updated successfully, but these errors were encountered: