Skip to content
New issue

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

iceRestart option in createOffer #149

Open
NarasimhaDo opened this issue Apr 18, 2019 · 0 comments
Open

iceRestart option in createOffer #149

NarasimhaDo opened this issue Apr 18, 2019 · 0 comments

Comments

@NarasimhaDo
Copy link

NarasimhaDo commented Apr 18, 2019

On network reconnection, we are trying to create an offer with a parameter : iceRestart : true. But, at the receiver user its throwing an error -> InvalidStateError: Failed to set remote offer sdp: Called in wrong state: kHaveLocalOffer. Basically, its trying to create a new offer instead of restarting the existing connection. What is the correct way to implement iceRestart in createOffer method?

usage :

self.constraints = [[RTCMediaConstraints alloc] initWithMandatoryConstraints:
@[
[[RTCPair alloc] initWithKey:@"OfferToReceiveAudio" value:@"true"],
[[RTCPair alloc] initWithKey:@"OfferToReceiveVideo" value:@"true"],
[[RTCPair alloc] initWithKey:@"iceRestart" value:@"true"]
] optionalConstraints:nil];

    [_peerConnection createOfferWithDelegate:self constraints:self.constraints];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant