Skip to content

iceRestart option in createOffer  #149

Description

@NarasimhaDo

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];

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions