red5pro / streaming-html5

Testbed examples for Red5 Pro HTML SDK usage
https://red5pro.github.io/streaming-html5
Other
66 stars 51 forks source link

Failed to execute 'setRemoteDescription' on 'RTCPeerConnection' #298

Open IgorCabral opened 4 years ago

IgorCabral commented 4 years ago

Hello Red5Pro!

I did all steps of "webrtcexamples/test/publish1080/". But whenever i try to run the page, it show me the following error on streaming start:

[Red5ProPublisher] Publish Error :: { "stack": "Error: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: The order of m-lines in answer doesn't match order in offer. Rejecting answer." }

Thanks in advance

IgorCabral commented 4 years ago

Here is the console log after i open the page:

testbed-config.js:30 Browser: {

"browser": "chrome", "version": 80 } red5pro-sdk.min.js:33 Red5 Pro SDK Version 6.0.0-release.b57 red5pro-sdk.min.js:33 2020-03-27T00:23:32.836Z - [red5pro-sdk] debug: (Red5ProPublisher) [orderupdate]: rtc,rtmp red5pro-sdk.min.js:33 2020-03-27T00:23:32.837Z - [red5pro-sdk] debug: (Red5ProPublisher) [publish] red5pro-sdk.min.js:33 2020-03-27T00:23:32.841Z - [red5pro-sdk] debug: (RTCPublisher) Requesting gUM using mediaConstraints: { "audio": true, "video": { "width": { "min": 640, "ideal": 1920, "max": 1920 }, "height": { "min": 480, "ideal": 1080, "max": 1080 }, "frameRate": { "min": 25, "ideal": 60, "max": 60 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:32.842Z - [red5pro-sdk] debug: ([gum:isExact]) Found matching resolution for 1920, 1080. red5pro-sdk.min.js:33 2020-03-27T00:23:32.843Z - [red5pro-sdk] debug: ([gum:hasMatchingFormat]) Filtered list: [ { "label": "1080p(FHD)", "width": 1920, "height": 1080 } ] red5pro-sdk.min.js:33 2020-03-27T00:23:32.845Z - [red5pro-sdk] debug: ([gum:getUserMedia]) Is Available in format listing: true red5pro-sdk.min.js:33 2020-03-27T00:23:32.846Z - [red5pro-sdk] debug: ([gum:isExact]) Found matching resolution for 1920, 1080. red5pro-sdk.min.js:33 2020-03-27T00:23:32.846Z - [red5pro-sdk] debug: ([gum:hasMatchingFormat]) Filtered list: [ { "label": "1080p(FHD)", "width": 1920, "height": 1080 } ] red5pro-sdk.min.js:33 2020-03-27T00:23:32.846Z - [red5pro-sdk] debug: ([gum:getUserMedia]) Found constraints in list. Checking quick support for faster setup with: { "audio": true, "video": { "width": { "min": 640, "ideal": 1920, "max": 1920 }, "height": { "min": 480, "ideal": 1080, "max": 1080 }, "frameRate": { "min": 25, "ideal": 60, "max": 60 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:32.848Z - [red5pro-sdk] debug: (R5ProPublishView) [attachpublisher] red5pro-sdk.min.js:33 2020-03-27T00:23:32.849Z - [red5pro-sdk] debug: (RTCPublisher) [publish] red5pro-sdk.min.js:33 2020-03-27T00:23:32.851Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket:setup] ws://localhost:5080/live/?id=stream1. DevTools failed to parse SourceMap: chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/include.postload.js.map red5pro-sdk.min.js:33 2020-03-27T00:23:33.201Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-response]: { "data": { "type": "status", "code": "NetConnection.Connect.Success" } } index.js:124 [Red5ProPublisher] Connect.Success. red5pro-sdk.min.js:33 2020-03-27T00:23:33.275Z - [red5pro-sdk] debug: (RTCPublisher) Found valid constraints: { "audio": true, "video": { "width": { "exact": 1920 }, "height": { "exact": 1080 }, "frameRate": { "min": 25, "ideal": 60, "max": 60 } } } index.js:124 [Red5ProPublisher] WebRTC.MediaConstraints.Accepted. index.js:124 [Red5ProPublisher] Publisher.Video.DimensionChange. index.js:124 [Red5ProPublisher] WebRTC.MediaStream.Available. red5pro-sdk.min.js:33 2020-03-27T00:23:33.278Z - [red5pro-sdk] debug: (R5ProPublishView) [preview]: autoplay(true) red5pro-sdk.min.js:33 2020-03-27T00:23:33.279Z - [red5pro-sdk] debug: (RTCPublisher) [requestavailability] red5pro-sdk.min.js:33 2020-03-27T00:23:33.337Z - [red5pro-sdk] debug: ([setVideoSource:action]) play (START) red5pro-sdk.min.js:33 2020-03-27T00:23:33.358Z - [red5pro-sdk] info: (R5ProPublisherSocket) [websocketopen] red5pro-sdk.min.js:33 2020-03-27T00:23:33.359Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "isAvailable": "stream1", "bundle": false } red5pro-sdk.min.js:33 2020-03-27T00:23:33.361Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-response]: { "isAvailable": false, "streamName": "stream1" } red5pro-sdk.min.js:33 2020-03-27T00:23:33.363Z - [red5pro-sdk] debug: (RTCPublisher) Stream stream1 does not exist. red5pro-sdk.min.js:33 2020-03-27T00:23:33.364Z - [red5pro-sdk] debug: (RTCPublisher) [onstreamunavailable]: { "isAvailable": false, "streamName": "stream1" } red5pro-sdk.min.js:33 2020-03-27T00:23:33.364Z - [red5pro-sdk] debug: (RTCPublisher) [createpeeer] red5pro-sdk.min.js:33 2020-03-27T00:23:33.365Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peerconnection:setUpWithPeerConfiguration]: { "iceServers": [ { "urls": "stun:stun2.l.google.com:19302" } ], "bundlePolicy": "max-bundle", "iceCandidatePoolSize": 2, "iceTransportPolicy": "all", "rtcpMuxPolicy": "require" } index.js:124 [Red5ProPublisher] WebRTC.PeerConnection.Available. red5pro-sdk.min.js:33 2020-03-27T00:23:33.371Z - [red5pro-sdk] debug: (RTCPublisher) [createoffer] red5pro-sdk.min.js:33 2020-03-27T00:23:33.371Z - [red5pro-sdk] debug: (R5ProPublishPeer) [createoffer] red5pro-sdk.min.js:33 2020-03-27T00:23:33.380Z - [red5pro-sdk] debug: (R5ProPublishPeer) [setlocaldescription] red5pro-sdk.min.js:33 2020-03-27T00:23:33.388Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onsignalingstatechange] - State: have-local-offer red5pro-sdk.min.js:33 2020-03-27T00:23:33.389Z - [red5pro-sdk] debug: (RTCPublisher) [onsdpsuccess] index.js:124 [Red5ProPublisher] WebRTC.Offer.Start. red5pro-sdk.min.js:33 2020-03-27T00:23:33.389Z - [red5pro-sdk] debug: (RTCPublisher) [sendoffer] red5pro-sdk.min.js:33 2020-03-27T00:23:33.390Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleOffer": "stream1", "transport": "udp", "data": { "sdp": { "type": "offer", "sdp": "v=0\r\no=- 5819188763929136461 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS i5YOpCnX1cFLKMkfxj2Dd0Xt9vlbm5IR8IYP\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:zguP\r\na=ice-pwd:zQsFPz3l8kxtz2jBKmolM2nA\r\na=ice-options:trickle\r\na=fingerprint:sha-256 9F:6D:38:1E:93:02:9D:F3:F5:A6:F3:EB:1F:58:D6:CA:0D:48:9A:0F:3B:B2:E5:EF:E1:E7:CB:6B:C1:D5:3A:52\r\na=setup:actpass\r\na=mid:0\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\na=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\r\na=sendrecv\r\na=msid:i5YOpCnX1cFLKMkfxj2Dd0Xt9vlbm5IR8IYP ab11e971-2691-4c86-8724-29a3f20d0f21\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:110 telephone-event/48000\r\na=rtpmap:112 telephone-event/32000\r\na=rtpmap:113 telephone-event/16000\r\na=rtpmap:126 telephone-event/8000\r\na=ssrc:2183932639 cname:ZFaIGiuxHg5lky5l\r\na=ssrc:2183932639 msid:i5YOpCnX1cFLKMkfxj2Dd0Xt9vlbm5IR8IYP ab11e971-2691-4c86-8724-29a3f20d0f21\r\na=ssrc:2183932639 mslabel:i5YOpCnX1cFLKMkfxj2Dd0Xt9vlbm5IR8IYP\r\na=ssrc:2183932639 label:ab11e971-2691-4c86-8724-29a3f20d0f21\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 122 127 121 125 107 108 109 124 120 123 119 114 115 116\r\nb=AS:2500\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:zguP\r\na=ice-pwd:zQsFPz3l8kxtz2jBKmolM2nA\r\na=ice-options:trickle\r\na=fingerprint:sha-256 9F:6D:38:1E:93:02:9D:F3:F5:A6:F3:EB:1F:58:D6:CA:0D:48:9A:0F:3B:B2:E5:EF:E1:E7:CB:6B:C1:D5:3A:52\r\na=setup:actpass\r\na=mid:1\r\na=extmap:14 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:13 urn:3gpp:video-orientation\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type\r\na=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing\r\na=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07\r\na=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\na=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\r\na=sendrecv\r\na=msid:i5YOpCnX1cFLKMkfxj2Dd0Xt9vlbm5IR8IYP 702b3928-a521-4488-b87a-ded9d7528693\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtpmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=rtpmap:98 VP9/90000\r\na=rtcp-fb:98 goog-remb\r\na=rtcp-fb:98 transport-cc\r\na=rtcp-fb:98 ccm fir\r\na=rtcp-fb:98 nack\r\na=rtcp-fb:98 nack pli\r\na=fmtp:98 profile-id=0\r\na=rtpmap:99 rtx/90000\r\na=fmtp:99 apt=98\r\na=rtpmap:100 VP9/90000\r\na=rtcp-fb:100 goog-remb\r\na=rtcp-fb:100 transport-cc\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=fmtp:100 profile-id=2\r\na=rtpmap:101 rtx/90000\r\na=fmtp:101 apt=100\r\na=rtpmap:102 H264/90000\r\na=rtcp-fb:102 goog-remb\r\na=rtcp-fb:102 transport-cc\r\na=rtcp-fb:102 ccm fir\r\na=rtcp-fb:102 nack\r\na=rtcp-fb:102 nack pli\r\na=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f\r\na=rtpmap:122 rtx/90000\r\na=fmtp:122 apt=102\r\na=rtpmap:127 H264/90000\r\na=rtcp-fb:127 goog-remb\r\na=rtcp-fb:127 transport-cc\r\na=rtcp-fb:127 ccm fir\r\na=rtcp-fb:127 nack\r\na=rtcp-fb:127 nack pli\r\na=fmtp:127 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f\r\na=rtpmap:121 rtx/90000\r\na=fmtp:121 apt=127\r\na=rtpmap:125 H264/90000\r\na=rtcp-fb:125 goog-remb\r\na=rtcp-fb:125 transport-cc\r\na=rtcp-fb:125 ccm fir\r\na=rtcp-fb:125 nack\r\na=rtcp-fb:125 nack pli\r\na=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\na=rtpmap:107 rtx/90000\r\na=fmtp:107 apt=125\r\na=rtpmap:108 H264/90000\r\na=rtcp-fb:108 goog-remb\r\na=rtcp-fb:108 transport-cc\r\na=rtcp-fb:108 ccm fir\r\na=rtcp-fb:108 nack\r\na=rtcp-fb:108 nack pli\r\na=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f\r\na=rtpmap:109 rtx/90000\r\na=fmtp:109 apt=108\r\na=rtpmap:124 H264/90000\r\na=rtcp-fb:124 goog-remb\r\na=rtcp-fb:124 transport-cc\r\na=rtcp-fb:124 ccm fir\r\na=rtcp-fb:124 nack\r\na=rtcp-fb:124 nack pli\r\na=fmtp:124 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d0032\r\na=rtpmap:120 rtx/90000\r\na=fmtp:120 apt=124\r\na=rtpmap:123 H264/90000\r\na=rtcp-fb:123 goog-remb\r\na=rtcp-fb:123 transport-cc\r\na=rtcp-fb:123 ccm fir\r\na=rtcp-fb:123 nack\r\na=rtcp-fb:123 nack pli\r\na=fmtp:123 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640032\r\na=rtpmap:119 rtx/90000\r\na=fmtp:119 apt=123\r\na=rtpmap:114 red/90000\r\na=rtpmap:115 rtx/90000\r\na=fmtp:115 apt=114\r\na=rtpmap:116 ulpfec/90000\r\na=ssrc-group:FID 2065232015 260714842\r\na=ssrc:2065232015 cname:ZFaIGiuxHg5lky5l\r\na=ssrc:2065232015 msid:i5YOpCnX1cFLKMkfxj2Dd0Xt9vlbm5IR8IYP 702b3928-a521-4488-b87a-ded9d7528693\r\na=ssrc:2065232015 mslabel:i5YOpCnX1cFLKMkfxj2Dd0Xt9vlbm5IR8IYP\r\na=ssrc:2065232015 label:702b3928-a521-4488-b87a-ded9d7528693\r\na=ssrc:260714842 cname:ZFaIGiuxHg5lky5l\r\na=ssrc:260714842 msid:i5YOpCnX1cFLKMkfxj2Dd0Xt9vlbm5IR8IYP 702b3928-a521-4488-b87a-ded9d7528693\r\na=ssrc:260714842 mslabel:i5YOpCnX1cFLKMkfxj2Dd0Xt9vlbm5IR8IYP\r\na=ssrc:260714842 label:702b3928-a521-4488-b87a-ded9d7528693\r\n" } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.391Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicegatheringstatechange] - State: gathering red5pro-sdk.min.js:33 2020-03-27T00:23:33.392Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.393Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.394Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.394Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:4185919939 1 udp 2122262784 2804:431:c7e8:3ca8:21cb:9ff6:3553:845d 56924 typ host generation 0 ufrag zguP network-id 3", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.395Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.396Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.396Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.397Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:3199941827 1 udp 2122197248 2804:431:c7e8:3ca8:b58c:27eb:e1ee:c715 56925 typ host generation 0 ufrag zguP network-id 4", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.397Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.398Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.398Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.398Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:3054232416 1 udp 2122129152 169.254.80.80 56926 typ host generation 0 ufrag zguP network-id 1", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.398Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.398Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.399Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.399Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:2533265093 1 udp 2122063616 192.168.15.14 56927 typ host generation 0 ufrag zguP network-id 2", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.399Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.399Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.400Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.400Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:1551804052 1 udp 2121998080 172.18.28.113 56928 typ host generation 0 ufrag zguP network-id 5", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.478Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-response]: { "data": { "sdp": { "type": "answer", "sdp": "v=0\no=red5pro_stream1 5281688777799 3 IN IP4 0.0.0.0\ns=-\nt=0 0\na=msid-semantic: WMS \na=group:BUNDLE 0\na=ice-options:trickle\nm=audio 9 UDP/TLS/RTP/SAVPF 111\nc=IN IP4 179.99.84.213\nb=AS:64\na=rtpmap:111 opus/48000/2\na=ice-ufrag:522e91e4cluo9o\na=ice-pwd:6s41utqi77r817emt6l7l6mc46\na=fingerprint:sha-256 F5:D5:B0:41:51:E7:7A:7E:19:69:7C:56:89:03:D7:A5:70:59:FB:95:F2:08:4D:F9:F8:E8:84:02:4B:C9:91:DE\na=setup:passive\na=mid:0\na=recvonly\na=rtcp-mux\na=rtcp-rsize\na=fmtp:111 minptime=10;useinbandfec=0;cbr=1\n" } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.479Z - [red5pro-sdk] debug: (RTCPublisher) [sdpanswer]:: { "sdp": { "type": "answer", "sdp": "v=0\no=red5pro_stream1 5281688777799 3 IN IP4 0.0.0.0\ns=-\nt=0 0\na=msid-semantic: WMS \na=group:BUNDLE 0\na=ice-options:trickle\nm=audio 9 UDP/TLS/RTP/SAVPF 111\nc=IN IP4 179.99.84.213\nb=AS:64\na=rtpmap:111 opus/48000/2\na=ice-ufrag:522e91e4cluo9o\na=ice-pwd:6s41utqi77r817emt6l7l6mc46\na=fingerprint:sha-256 F5:D5:B0:41:51:E7:7A:7E:19:69:7C:56:89:03:D7:A5:70:59:FB:95:F2:08:4D:F9:F8:E8:84:02:4B:C9:91:DE\na=setup:passive\na=mid:0\na=recvonly\na=rtcp-mux\na=rtcp-rsize\na=fmtp:111 minptime=10;useinbandfec=0;cbr=1\n" } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.479Z - [red5pro-sdk] debug: (RTCPublisher) [setremotedescription] red5pro-sdk.min.js:33 2020-03-27T00:23:33.480Z - [red5pro-sdk] debug: (R5ProPublishPeer) [setremotedescription] red5pro-sdk.min.js:33 2020-03-27T00:23:33.481Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-response]: { "data": { "type": "candidate", "candidate": { "sdpMid": "0", "sdpMLineIndex": 0, "candidate": "candidate:1 1 udp 687865855 169.254.80.80 63694 typ host generation 0" } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.482Z - [red5pro-sdk] debug: (RTCPublisher) [addicecandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.482Z - [red5pro-sdk] debug: (R5ProPublishPeer) [addcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.486Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-response]: { "data": { "type": "candidate", "candidate": { "sdpMid": "0", "sdpMLineIndex": 0, "candidate": "candidate:2 1 udp 687865855 192.168.15.14 63694 typ host generation 0" } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.486Z - [red5pro-sdk] debug: (RTCPublisher) [addicecandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.487Z - [red5pro-sdk] debug: (R5ProPublishPeer) [addcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.489Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-response]: { "data": { "type": "candidate", "candidate": { "sdpMid": "0", "sdpMLineIndex": 0, "candidate": "candidate:3 1 udp 671091455 172.18.28.113 63694 typ host generation 0" } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.489Z - [red5pro-sdk] debug: (RTCPublisher) [addicecandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.490Z - [red5pro-sdk] debug: (R5ProPublishPeer) [addcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.495Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-response]: { "data": { "type": "candidate", "candidate": { "sdpMid": "0", "sdpMLineIndex": 0, "candidate": "candidate:4 1 udp 1677724415 179.99.84.213 63694 typ srflx raddr 172.18.28.113 rport 63694 generation 0" } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.495Z - [red5pro-sdk] debug: (RTCPublisher) [addicecandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.495Z - [red5pro-sdk] debug: (R5ProPublishPeer) [addcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.497Z - [red5pro-sdk] debug: ([window:orientation]) [removeOrientationChangeHandler]:: onorientationchange removed. index.js:124 [Red5ProPublisher] Connect.Failure. index.js:258 [Red5ProPublisher] :: Error in publishing - { "stack": "Error: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: The order of m-lines in answer doesn't match order in offer. Rejecting answer." } (anonymous) @ index.js:258 Promise.catch (async) (anonymous) @ index.js:256 (anonymous) @ index.js:278 index.js:131 [Red5ProPublisher] Publish Error :: { "stack": "Error: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: The order of m-lines in answer doesn't match order in offer. Rejecting answer." } onPublishFail @ index.js:131 (anonymous) @ index.js:259 Promise.catch (async) (anonymous) @ index.js:256 (anonymous) @ index.js:278 2red5pro-sdk.min.js:33 2020-03-27T00:23:33.499Z - [red5pro-sdk] warn: (RTCPublisher) [addicecandidate:error] - OperationError: Failed to execute 'addIceCandidate' on 'RTCPeerConnection': Error processing ICE candidate 2red5pro-sdk.min.js:33 2020-03-27T00:23:33.501Z - [red5pro-sdk] warn: (RTCPublisher) [addicecandidate:error] - OperationError: Failed to execute 'addIceCandidate' on 'RTCPeerConnection': Error processing ICE candidate red5pro-sdk.min.js:33 2020-03-27T00:23:33.502Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.502Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.503Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.503Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:3070487859 1 tcp 1518283007 2804:431:c7e8:3ca8:21cb:9ff6:3553:845d 9 typ host tcptype active generation 0 ufrag zguP network-id 3", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.504Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.505Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.506Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.506Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:4030251059 1 tcp 1518217471 2804:431:c7e8:3ca8:b58c:27eb:e1ee:c715 9 typ host tcptype active generation 0 ufrag zguP network-id 4", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.506Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.507Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.508Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.508Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:4169670544 1 tcp 1518149375 169.254.80.80 9 typ host tcptype active generation 0 ufrag zguP network-id 1", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.509Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.509Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.510Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.510Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:3632099893 1 tcp 1518083839 192.168.15.14 9 typ host tcptype active generation 0 ufrag zguP network-id 2", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.511Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.511Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.511Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.512Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:318593636 1 tcp 1518018303 172.18.28.113 9 typ host tcptype active generation 0 ufrag zguP network-id 5", "sdpMid": "0", "sdpMLineIndex": 0 } } } red5pro-sdk.min.js:33 2020-03-27T00:23:33.629Z - [red5pro-sdk] debug: (R5ProPublishPeer) [peer.onicecandidate] - Peer Candidate: [object RTCIceCandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.629Z - [red5pro-sdk] debug: (RTCPublisher) [icecandidatetrickle] red5pro-sdk.min.js:33 2020-03-27T00:23:33.630Z - [red5pro-sdk] debug: (RTCPublisher) [sendcandidate] red5pro-sdk.min.js:33 2020-03-27T00:23:33.630Z - [red5pro-sdk] debug: (R5ProPublisherSocket) [websocket-post]: { "handleCandidate": "stream1", "data": { "candidate": { "candidate": "candidate:397838449 1 udp 1685855999 179.99.84.213 56927 typ srflx raddr 192.168.15.14 rport 56927 generation 0 ufrag zguP network-id 2", "sdpMid": "0", "sdpMLineIndex": 0 } } }

Balaji-Rahunathan commented 4 years ago

Getting the same issue while running on Mac OS X 10.15.5

Error in publish request: InvalidAccessError: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: The order of m-lines in answer doesn't match order in offer. Rejecting answer.

bustardcelly commented 4 years ago

@IgorCabral the Order of m-lines is a known issue in Safari, for which there was a fix committed to the HTML SDK after v6.0.0. We have not seen it in Chrome, though Chrome 80 is pretty old at this point. You may benefit from upgrading Chrome?

@Balaji-Rahunathan what version of the HTML SDK are you running on? Is it the one included in this repository? As mentioned above, the Order of m-lines was an issue we saw in Safari and have provided a fix in the latest HTML SDK.

Balaji-Rahunathan commented 4 years ago

Chrome Version 84.0.4147.89 this is the version i am using right now @bustardcelly and i am not using the html sdk, i tried the examples.

bustardcelly commented 4 years ago

Odd. I am on macos 10.15.6, same Chrome and I have not experienced the m-lines issue.

I would be shocked if it is a difference between macos versions.

Does this happen every time @Balaji-Rahunathan you try to publish?

Balaji-Rahunathan commented 4 years ago

yeah it's happening all the time i tried on different machines also

bustardcelly commented 4 years ago

@Balaji-Rahunathan What version of the Red5 Pro HTML SDK are you running? Are you using the built-in iSight camera?

j4hangir commented 3 years ago

Confirmed, also happening to me, only on chrome on Windows, but works fine in Safari.