webrtcbin: pad-removed event is missing on renegotiation
pad-added
event works fine, but after renegotiation with streams changes only events about new streams are fired, but there are no pad-removed
events and all streams that no longer exist on sender side are still present.
pad-removed
is only fired on pipeline destruction.
Here is SDP offer for initial connection:
v=0
o=- 7447571834747151851 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1 2
a=msid-semantic: WMS VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
b=AS:1000
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ohUL
a=ice-pwd:YlFrGxXMEgN99Yarn7zMIqw/
a=ice-options:trickle
a=fingerprint:sha-256 DD:B0:69:27:0B:C4:B1:5F:54:83:F2:82:93:74:66:C2:CB:5F:0D:1C:98:13:E7:49:5D:70:B4:21:50:2E:1F:A2
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 1369884d-d944-404f-b9d4-6a79f905c152
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:3945923900 cname:JdUT0XmI5FtS0guL
a=ssrc:3945923900 msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 1369884d-d944-404f-b9d4-6a79f905c152
a=ssrc:3945923900 mslabel:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V
a=ssrc:3945923900 label:1369884d-d944-404f-b9d4-6a79f905c152
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 125 127
c=IN IP4 0.0.0.0
b=AS:100000
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ohUL
a=ice-pwd:YlFrGxXMEgN99Yarn7zMIqw/
a=ice-options:trickle
a=fingerprint:sha-256 DD:B0:69:27:0B:C4:B1:5F:54:83:F2:82:93:74:66:C2:CB:5F:0D:1C:98:13:E7:49:5D:70:B4:21:50:2E:1F:A2
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07
a=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 9dbfcafe-685c-429b-808c-969ef3334039
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:102 red/90000
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=102
a=rtpmap:127 ulpfec/90000
a=ssrc-group:FID 3746199350 741559995
a=ssrc:3746199350 cname:JdUT0XmI5FtS0guL
a=ssrc:3746199350 msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 9dbfcafe-685c-429b-808c-969ef3334039
a=ssrc:3746199350 mslabel:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V
a=ssrc:3746199350 label:9dbfcafe-685c-429b-808c-969ef3334039
a=ssrc:741559995 cname:JdUT0XmI5FtS0guL
a=ssrc:741559995 msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 9dbfcafe-685c-429b-808c-969ef3334039
a=ssrc:741559995 mslabel:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V
a=ssrc:741559995 label:9dbfcafe-685c-429b-808c-969ef3334039
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 0.0.0.0
a=ice-ufrag:ohUL
a=ice-pwd:YlFrGxXMEgN99Yarn7zMIqw/
a=ice-options:trickle
a=fingerprint:sha-256 DD:B0:69:27:0B:C4:B1:5F:54:83:F2:82:93:74:66:C2:CB:5F:0D:1C:98:13:E7:49:5D:70:B4:21:50:2E:1F:A2
a=setup:actpass
a=mid:2
a=sctp-port:5000
a=max-message-size:262144
And SDP offer used for renegotiation (audio and video streams were replaced):
v=0
o=- 7447571834747151851 3 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1 2 3 4
a=msid-semantic: WMS VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V
m=audio 34812 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 172.18.0.1
b=AS:1000
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ohUL
a=ice-pwd:YlFrGxXMEgN99Yarn7zMIqw/
a=ice-options:trickle
a=fingerprint:sha-256 DD:B0:69:27:0B:C4:B1:5F:54:83:F2:82:93:74:66:C2:CB:5F:0D:1C:98:13:E7:49:5D:70:B4:21:50:2E:1F:A2
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=recvonly
a=msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 1369884d-d944-404f-b9d4-6a79f905c152
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:3945923900 cname:JdUT0XmI5FtS0guL
a=ssrc:3945923900 msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 1369884d-d944-404f-b9d4-6a79f905c152
a=ssrc:3945923900 mslabel:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V
a=ssrc:3945923900 label:1369884d-d944-404f-b9d4-6a79f905c152
m=video 44432 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 125 127
c=IN IP4 172.18.0.1
b=AS:100000
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ohUL
a=ice-pwd:YlFrGxXMEgN99Yarn7zMIqw/
a=ice-options:trickle
a=fingerprint:sha-256 DD:B0:69:27:0B:C4:B1:5F:54:83:F2:82:93:74:66:C2:CB:5F:0D:1C:98:13:E7:49:5D:70:B4:21:50:2E:1F:A2
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07
a=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=recvonly
a=msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 9dbfcafe-685c-429b-808c-969ef3334039
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:102 red/90000
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=102
a=rtpmap:127 ulpfec/90000
a=ssrc-group:FID 3746199350 741559995
a=ssrc:3746199350 cname:JdUT0XmI5FtS0guL
a=ssrc:3746199350 msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 9dbfcafe-685c-429b-808c-969ef3334039
a=ssrc:3746199350 mslabel:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V
a=ssrc:3746199350 label:9dbfcafe-685c-429b-808c-969ef3334039
a=ssrc:741559995 cname:JdUT0XmI5FtS0guL
a=ssrc:741559995 msid:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V 9dbfcafe-685c-429b-808c-969ef3334039
a=ssrc:741559995 mslabel:VgvYrgGwV4hd8vnoTpmbwvtmBiyNXu4Lnm0V
a=ssrc:741559995 label:9dbfcafe-685c-429b-808c-969ef3334039
m=application 53785 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 172.18.0.1
a=ice-ufrag:ohUL
a=ice-pwd:YlFrGxXMEgN99Yarn7zMIqw/
a=ice-options:trickle
a=fingerprint:sha-256 DD:B0:69:27:0B:C4:B1:5F:54:83:F2:82:93:74:66:C2:CB:5F:0D:1C:98:13:E7:49:5D:70:B4:21:50:2E:1F:A2
a=setup:actpass
a=mid:2
a=sctp-port:5000
a=max-message-size:262144
m=audio 38160 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 172.18.0.1
b=AS:1000
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ohUL
a=ice-pwd:YlFrGxXMEgN99Yarn7zMIqw/
a=ice-options:trickle
a=fingerprint:sha-256 DD:B0:69:27:0B:C4:B1:5F:54:83:F2:82:93:74:66:C2:CB:5F:0D:1C:98:13:E7:49:5D:70:B4:21:50:2E:1F:A2
a=setup:actpass
a=mid:3
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:i5pwzxqU2ppt941JiC1PboOJu7xiVjQgri46 6d8da195-3f00-48c9-9d15-51a2a66d43e3
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:2229480427 cname:JdUT0XmI5FtS0guL
a=ssrc:2229480427 msid:i5pwzxqU2ppt941JiC1PboOJu7xiVjQgri46 6d8da195-3f00-48c9-9d15-51a2a66d43e3
a=ssrc:2229480427 mslabel:i5pwzxqU2ppt941JiC1PboOJu7xiVjQgri46
a=ssrc:2229480427 label:6d8da195-3f00-48c9-9d15-51a2a66d43e3
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 125 127
c=IN IP4 0.0.0.0
b=AS:100000
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ohUL
a=ice-pwd:YlFrGxXMEgN99Yarn7zMIqw/
a=ice-options:trickle
a=fingerprint:sha-256 DD:B0:69:27:0B:C4:B1:5F:54:83:F2:82:93:74:66:C2:CB:5F:0D:1C:98:13:E7:49:5D:70:B4:21:50:2E:1F:A2
a=setup:actpass
a=mid:4
a=extmap:14 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:13 urn:3gpp:video-orientation
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07
a=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:i5pwzxqU2ppt941JiC1PboOJu7xiVjQgri46 5459b774-f5a0-441f-b698-f650a523e8ac
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:102 red/90000
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=102
a=rtpmap:127 ulpfec/90000
a=ssrc-group:FID 1733318983 1106975652
a=ssrc:1733318983 cname:JdUT0XmI5FtS0guL
a=ssrc:1733318983 msid:i5pwzxqU2ppt941JiC1PboOJu7xiVjQgri46 5459b774-f5a0-441f-b698-f650a523e8ac
a=ssrc:1733318983 mslabel:i5pwzxqU2ppt941JiC1PboOJu7xiVjQgri46
a=ssrc:1733318983 label:5459b774-f5a0-441f-b698-f650a523e8ac
a=ssrc:1106975652 cname:JdUT0XmI5FtS0guL
a=ssrc:1106975652 msid:i5pwzxqU2ppt941JiC1PboOJu7xiVjQgri46 5459b774-f5a0-441f-b698-f650a523e8ac
a=ssrc:1106975652 mslabel:i5pwzxqU2ppt941JiC1PboOJu7xiVjQgri46
a=ssrc:1106975652 label:5459b774-f5a0-441f-b698-f650a523e8ac
I'm on master branch of GStreamer, plugins and libnice.