Thanks very much for the advice.
When I try bundlePolicy:max-bundle instead of bundlePolicy:max-compat, Freeswitch's js library encounters the following error on Chrome 106.0.5249.40 (Official Build) beta (64-bit) / Win10:
InvalidAccessError: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: Answer cannot remove m= section with mid='0' from already-established BUNDLE group.
when calling:
peer.setRemoteDescription(
new window.RTCSessionDescription(sdp)
)
If it matters, in our offers in m=audio we set a=sendrecv and in m=video we set a=sendonly
The answer seems well-formed; in particular its m=audio contains a=sendrecv and its m=video has a=recvonly. The answer has no 'mid', so the error is especially confusing to me.