Failed to set remote video description send parameters on native IOS

Roger Law picture Roger Law · Dec 27, 2017 · Viewed 7.2k times · Source

Here is sdpOffer:

offer

v=0

o=- 1514366952141741 1 IN IP4 hostx

s=Mountpoint 99

t=0 0

a=group:BUNDLE video

a=msid-semantic: WMS janus

m=video 9 UDP/TLS/RTP/SAVPF 96

c=IN IP4 hostx

a=sendonly

a=mid:video

a=rtcp-mux

a=ice-ufrag:7joH

a=ice-pwd:bdRP/kVha/3vSoGEvstOxK

a=ice-options:trickle

a=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38

a=setup:actpass

a=rtpmap:96 H264/90000

a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z00AH5Y1QWgUNNwEBAQI,aO48gA==

a=rtcp-fb:96 nack

a=rtcp-fb:96 goog-remb

a=ssrc:2233529852 cname:janusvideo

a=ssrc:2233529852 msid:janus janusv0

a=ssrc:2233529852 mslabel:janus

a=ssrc:2233529852 label:janusv0

a=candidate:1 1 udp 2013266431 host 42772 typ host

a=candidate:2 1 udp 2013266431 hostx 54166 typ host

a=candidate:1 2 udp 2013266430 host 54469 typ host

a=candidate:2 2 udp 2013266430 hostx 49119 typ host

a=end-of-candidates

I got the following error when I called setRemoteDescription on native IOS.

Failed to set remote video description send parameters

Please help!

Answer

Roger Law picture Roger Law · Dec 29, 2017

The problem comes from this line:

profile-level-id 420029

My solution is simply to replace the "420029" by "42e01f", then everything works just fine. The situation seems related to the RFC 6184 8.2.2. You can visit here for more details.