Failed to set remote video description send parameters on native IOS

前端 未结 2 1301
太阳男子
太阳男子 2021-01-15 08:19

Here is sdpOffer:

offer

v=0

o=- 1514366952141741 1 IN IP4 hostx

s=Mountpoint 99

t=0 0

a=group:BUNDLE video

2条回答
  •  有刺的猬
    2021-01-15 08:44

    I analyzed your SDP and I found that which is not correct . So you need to do compare bellow SDP , Even though if you get the problem then you can put bellow SDP format as hardcoded for debugging.

    char const *local_OR_Remote_sdp =
        "v=0\r\n\
        o=- 4340022199490876901 2 IN IP4 127.0.0.1\r\n\
        s=-\r\n\
        t=0 0\r\n\
        a=group:BUNDLE audio video\r\n\
        a=msid-semantic: WMS ARDAMS\r\n\
        m=audio 9 UDP/TLS/RTP/SAVPF 111 103 9 102 0 8 106 105 13 127 126\r\n\
        c=IN IP4 0.0.0.0\r\n\
        a=rtcp:9 IN IP4 0.0.0.0\r\n\
        a=ice-ufrag:Gok2zrJABO7lhGB8\r\n\
        a=ice-pwd:J1UXkVsMivK9+rqzPuP//OVe\r\n\
        a=fingerprint:sha-256 1F:68:4B:D3:85:4E:11:4C:9B:F7:5A:B9:4C:74:0A:BD:D4:FC:8F:E6:53:68:81:20:D1:03:C9:A9:AD:86:5D:A2\r\n\
        a=setup:actpass\r\n\
        a=mid:audio\r\n\
        a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\n\
        a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\n\
        a=sendrecv\r\n\
        a=rtcp-mux\r\n\
        a=rtpmap:111 opus/48000/2\r\n\
        a=fmtp:111 minptime=10; useinbandfec=1\r\n\
        a=rtpmap:103 ISAC/16000\r\n\
        a=rtpmap:9 G722/8000\r\n\
        a=rtpmap:102 ILBC/8000\r\n\
        a=rtpmap:0 PCMU/8000\r\n\
        a=rtpmap:8 PCMA/8000\r\n\
        a=rtpmap:106 CN/32000\r\n\
        a=rtpmap:105 CN/16000\r\n\
        a=rtpmap:13 CN/8000\r\n\
        a=rtpmap:127 red/8000\r\n\
        a=rtpmap:126 telephone-event/8000\r\n\
        a=maxptime:60\r\n\
        a=ssrc:2271307011 cname:Pjjr5hQnoeV7A6WS\r\n\
        a=ssrc:2271307011 msid:ARDAMS ARDAMSa0\r\n\
        a=ssrc:2271307011 mslabel:ARDAMS\r\n\
        a=ssrc:2271307011 label:ARDAMSa0\r\n\
        m=video 9 UDP/TLS/RTP/SAVPF 100 101 116 117 96\r\n\
        c=IN IP4 0.0.0.0\r\n\
        a=rtcp:9 IN IP4 0.0.0.0\r\n\
        a=ice-ufrag:Gok2zrJABO7lhGB8\r\n\
        a=ice-pwd:J1UXkVsMivK9+rqzPuP//OVe\r\n\
        a=fingerprint:sha-256 1F:68:4B:D3:85:4E:11:4C:9B:F7:5A:B9:4C:74:0A:BD:D4:FC:8F:E6:53:68:81:20:D1:03:C9:A9:AD:86:5D:A2\r\n\
        a=setup:actpass\r\n\
        a=mid:video\r\n\
        a=extmap:2 urn:ietf:params:rtp-hdrext:toffset\r\n\
        a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\n\
        a=extmap:4 urn:3gpp:video-orientation\r\n\
        a=sendrecv\r\n\
        a=rtcp-mux\r\n\
        a=rtpmap:100 VP8/90000\r\n\
        a=rtcp-fb:100 ccm fir\r\n\
        a=rtcp-fb:100 nack\r\n\
        a=rtcp-fb:100 nack pli\r\n\
        a=rtcp-fb:100 goog-remb\r\n\
        a=rtcp-fb:100 transport-cc\r\n\
        a=rtpmap:101 VP9/90000\r\n\
        a=rtcp-fb:101 ccm fir\r\n\
        a=rtcp-fb:101 nack\r\n\
        a=rtcp-fb:101 nack pli\r\n\
        a=rtcp-fb:101 goog-remb\r\n\
        a=rtcp-fb:101 transport-cc\r\n\
        a=rtpmap:116 red/90000\r\n\
        a=rtpmap:117 ulpfec/90000\r\n\
        a=rtpmap:96 rtx/90000\r\n\
        a=fmtp:96 apt=100\r\n\
        a=ssrc-group:FID 4091763228 2995868033\r\n\
        a=ssrc:4091763228 cname:Pjjr5hQnoeV7A6WS\r\n\
        a=ssrc:4091763228 msid:ARDAMS ARDAMSv0\r\n\
        a=ssrc:4091763228 mslabel:ARDAMS\r\n\
        a=ssrc:4091763228 label:ARDAMSv0\r\n\
        a=ssrc:2995868033 cname:Pjjr5hQnoeV7A6WS\r\n\
        a=ssrc:2995868033 msid:ARDAMS ARDAMSv0\r\n\
        a=ssrc:2995868033 mslabel:ARDAMS\r\n\
        a=ssrc:2995868033 label:ARDAMSv0\r\n\
        ";
    

提交回复
热议问题