webrtcHacks/adapter

Rollback throws InvalidStateError on mobile Safari (iOS 13.4.1)

goekhancimsir opened this issue · 2 comments

Please read first!

Please use discuss-webrtc for general technical discussions and questions.

  • I have provided steps to reproduce (e.g. a link to a jsfiddle)
  • I have provided browser name, version and adapter.js version
  • This issue only happens when adapter.js is used

Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed.

Versions affected

mobile Safari, iOS 13.4.1

adapter.js (latest)

Description

Rollback of the peer connection state by calling pc.setLocalDescription({type: "rollback"}) throws an error of type InvalidStateError.

Steps to reproduce

  • Open jsfiddle in mobile Safari
  • Click / Press "Run"

Expected results

pc.setLocalDescription({type: "rollback"}) should not throw any error and rollback the peer connections signaling state to "stable"

Actual results

Rollback of the peer connections state to "stable" fails since an error is thrown.

fippo commented

How is that related to adapter?

Thought adapter might be responsible for it but now I see (after carefully reading adapters description) that it is more likely to be an issue on a lower level layer (maybe WebRTC directly?). I am going to close this issue and try to find help from somewhere else. Thanks!