[Webkit-unassigned] [Bug 195930] New: createAnswer() SDP Rejected by setLocalDescription()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 18 19:20:08 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=195930

            Bug ID: 195930
           Summary: createAnswer() SDP Rejected by setLocalDescription()
           Product: WebKit
           Version: Safari 12
          Hardware: Unspecified
                OS: macOS 10.13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: vncntlvr at gmail.com
                CC: youennf at gmail.com

Safari 12.1 beta 5 on macOS 10.13. Kurento 6.9.0 (MCU).

This is a one-way Safari to Kurento stream recording system. We are recording the image from a canvas and the user audio. Kurento makes the offer and Safari creates an answer. It works perfectly fine in Safari 12. But in Safari 12.1, the pc.setLocalDescription promise fails like so :

pc.setRemoteDescription(new RTCSessionDescription({sdp: kurentoSdpOffer, type : "offer"}))
.then(() => pc.createAnswer())
.then(safariSdpAnswer => {
  return pc.setLocalDescription(safariSdpAnswer); // <-- This promise fails.
},
errorMessage => {
  console.error(errorMessage);
});

kurentoSdpOffer :
v=0
o=- 3761869441 3761869441 IN IP4 0.0.0.0
s=Kurento Media Server
c=IN IP4 0.0.0.0
t=0 0
a=group:BUNDLE audio0 video0
m=audio 1 RTP/SAVPF 96
a=setup:actpass
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=rtpmap:96 opus/48000/2
a=rtcp:9 IN IP4 0.0.0.0
a=rtcp-mux
a=recvonly
a=mid:audio0
a=ssrc:424993814 cname:user947799849 at host-a8497e84
a=ice-ufrag:ZLgu
a=ice-pwd:3/gb3GZYQ2wgxAHnFRT1bf
a=fingerprint:sha-256 5A:08:09:0D:E9:1C:78:20:65:64:95:6E:FE:29:91:E1:CC:6E:47:F1:A4:7A:8E:F9:6F:4D:A4:7A:7A:A2:76:BF
m=video 1 RTP/SAVPF 99
b=AS:500
a=setup:actpass
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=rtpmap:99 H264/90000
a=rtcp:9 IN IP4 0.0.0.0
a=rtcp-mux
a=recvonly
a=mid:video0
a=rtcp-fb:99 nack
a=rtcp-fb:99 nack pli
a=rtcp-fb:99 ccm fir
a=ssrc:3599710107 cname:user947799849 at host-a8497e84
a=ice-ufrag:ZLgu
a=ice-pwd:3/gb3GZYQ2wgxAHnFRT1bf
a=fingerprint:sha-256 5A:08:09:0D:E9:1C:78:20:65:64:95:6E:FE:29:91:E1:CC:6E:47:F1:A4:7A:8E:F9:6F:4D:A4:7A:7A:A2:76:BF

safariSdpAnswer :
v=0
o=- 6264218082987584695 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio0 video0
a=msid-semantic: WMS 2911055e-5ba6-4466-b97d-5096a0cf8d54
m=audio 9 RTP/SAVPF 96
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:i7we
a=ice-pwd:nP0vZh1MKgeVU+U1qEDEI8HL
a=ice-options:trickle
a=fingerprint:sha-256 E1:75:F9:F1:26:CD:CF:54:AE:2C:07:FB:15:BA:FC:C8:4E:06:A1:92:89:58:FB:8D:53:37:E7:40:D5:2E:39:E6
a=setup:active
a=mid:audio0
a=sendonly
a=msid:2911055e-5ba6-4466-b97d-5096a0cf8d54 2a8ab184-4d39-491b-a82e-1dc592395cb6
a=rtcp-mux
a=rtpmap:96 opus/48000/2
a=fmtp:96 minptime=10;useinbandfec=1
a=ssrc:330308847 cname:naYlH6QAtK0bdBJv
a=ssrc:330308847 msid:2911055e-5ba6-4466-b97d-5096a0cf8d54 2a8ab184-4d39-491b-a82e-1dc592395cb6
a=ssrc:330308847 mslabel:2911055e-5ba6-4466-b97d-5096a0cf8d54
a=ssrc:330308847 label:2a8ab184-4d39-491b-a82e-1dc592395cb6
m=video 9 RTP/SAVPF 0
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:i7we
a=ice-pwd:nP0vZh1MKgeVU+U1qEDEI8HL
a=ice-options:trickle
a=fingerprint:sha-256 E1:75:F9:F1:26:CD:CF:54:AE:2C:07:FB:15:BA:FC:C8:4E:06:A1:92:89:58:FB:8D:53:37:E7:40:D5:2E:39:E6
a=setup:active
a=mid:video0
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendonly
a=msid:2911055e-5ba6-4466-b97d-5096a0cf8d54 75daf2bd-16b5-4401-9b05-a9a295c37a5c
a=rtcp-mux
a=ssrc:2457216628 cname:naYlH6QAtK0bdBJv
a=ssrc:2457216628 msid:2911055e-5ba6-4466-b97d-5096a0cf8d54 75daf2bd-16b5-4401-9b05-a9a295c37a5c
a=ssrc:2457216628 mslabel:2911055e-5ba6-4466-b97d-5096a0cf8d54
a=ssrc:2457216628 label:75daf2bd-16b5-4401-9b05-a9a295c37a5c

errorMessage :
OperationError: Failed to set local answer sdp: Failed to set local video description recv parameters.

I know that you guys made the move to Unified Plan and I think that Kurento only supports plan-b. But I don't see what is wrong with the Kurento offer and the error message is not very helpful. I notice that a "rtpmap" is absent for video in the Safari answer, but I don't know what is wrong with my code. Should I be converting the SDP on the fly between Kurento and Safari ? Is this a Safari bug ?

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190319/9204043b/attachment.html>


More information about the webkit-unassigned mailing list