Simplified session negotiation..

146 views
Skip to first unread message

MediaWiz

unread,
Jun 6, 2022, 2:49:49 PM6/6/22
to discuss-webrtc
I'm creating a WebRTC server to support a very simple configuration, as follows:

- The WebRTC connection is only needed to be "half-duplex" (a media stream from the client to the server).

- The WebRTC server has a fixed public IP that the client can connect directly to.  There is no need (thus far) for the server to connect back to the client.

As such, I am thinking that I don't need to use the full "Ice Negotiation" process.  I just need the client to pass the SD for the desired media configuration to the server (and the server to perhaps reply).

Does anyone know of an example or documentation for a simplified connection process? 


Dhimant Bhayani

unread,
Jun 6, 2022, 3:38:55 PM6/6/22
to discuss...@googlegroups.com
Russ,

Are you trying to do one way publishing via WebRTC?

Best,

Dhimant 

On Jun 6, 2022, at 11:49 AM, MediaWiz <russ....@tonal.com> wrote:

I'm creating a WebRTC server to support a very simple configuration, as follows:
--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/49106c4a-aed2-48df-adf2-9e7684dc29d5n%40googlegroups.com.

MediaWiz

unread,
Jun 6, 2022, 4:43:18 PM6/6/22
to discuss-webrtc
Yes, I am trying to do one way streaming from client to server via WebRTC.

Dhimant Bhayani

unread,
Jun 6, 2022, 5:58:46 PM6/6/22
to discuss...@googlegroups.com
Sent you a private email.

Sent from my iPhone

On Jun 6, 2022, at 1:43 PM, MediaWiz <russ....@tonal.com> wrote:

Yes, I am trying to do one way streaming from client to server via WebRTC.

Philipp Hancke

unread,
Jun 7, 2022, 12:44:32 AM6/7/22
to discuss...@googlegroups.com
https://www.ietf.org/archive/id/draft-ietf-wish-whip-01.html is probably what you are looking for. You will still need a response from the server.

李德平

unread,
Jun 7, 2022, 2:03:32 PM6/7/22
to discuss...@googlegroups.com
In your case , its ice-lite(https://bloggeek.me/webrtcglossary/ice-lite/), media server to only answer incoming STUN binding requests and acting as a controlled entity,  you can make peerconnection's stun&turn server configure param null, only send sdp without  ice candidate,  and webrtc server response answer sdp with its public ice candidate.

yukuan chai

unread,
Jul 10, 2022, 7:37:59 AM7/10/22
to discuss-webrtc
The answer is returned by the server and the candidate's description is added to the sdp. The connection to webrtc is done without additional transport candidates. 
sdp as shown below:
offer
```chrome
v=0
o=- 363699353833245985 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS 63145f8e-b1f8-4e6c-9808-442d57cdb0ba
m=audio 9 UDP/TLS/RTP/SAVPF 111 63 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:bRr3
a=ice-pwd:0E3Mru+zUqSb+d4Q+4zZHf8a
a=ice-options:trickle
a=fingerprint:sha-256 6D:16:58:A0:97:AE:1D:D2:45:50:EA:A5:FB:F6:8E:C5:46:FC:71:01:BB:D2:38:EF:C9:C9:48:E9:EF:2C:25:8A
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=sendrecv
a=msid:- 9709afd3-9669-4fa0-a0bb-2a0d09ceb366
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
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:2746413365 cname:cH8zNiIYc6Or008w
a=ssrc:2746413365 msid:- 9709afd3-9669-4fa0-a0bb-2a0d09ceb366
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 121 125 107 108 109 124 120 123 119 35 36 41 42 114 115 116 117 118
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:bRr3
a=ice-pwd:0E3Mru+zUqSb+d4Q+4zZHf8a
a=ice-options:trickle
a=fingerprint:sha-256 6D:16:58:A0:97:AE:1D:D2:45:50:EA:A5:FB:F6:8E:C5:46:FC:71:01:BB:D2:38:EF:C9:C9:48:E9:EF:2C:25:8A
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:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 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://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendonly
a=msid:63145f8e-b1f8-4e6c-9808-442d57cdb0ba 3178d599-ab51-4ea8-ada0-c368c08537d6
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:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:121 rtx/90000
a=fmtp:121 apt=127
a=rtpmap:125 H264/90000
a=rtcp-fb:125 goog-remb
a=rtcp-fb:125 transport-cc
a=rtcp-fb:125 ccm fir
a=rtcp-fb:125 nack
a=rtcp-fb:125 nack pli
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=125
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:124 H264/90000
a=rtcp-fb:124 goog-remb
a=rtcp-fb:124 transport-cc
a=rtcp-fb:124 ccm fir
a=rtcp-fb:124 nack
a=rtcp-fb:124 nack pli
a=fmtp:124 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:120 rtx/90000
a=fmtp:120 apt=124
a=rtpmap:123 H264/90000
a=rtcp-fb:123 goog-remb
a=rtcp-fb:123 transport-cc
a=rtcp-fb:123 ccm fir
a=rtcp-fb:123 nack
a=rtcp-fb:123 nack pli
a=fmtp:123 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:119 rtx/90000
a=fmtp:119 apt=123
a=rtpmap:35 H264/90000
a=rtcp-fb:35 goog-remb
a=rtcp-fb:35 transport-cc
a=rtcp-fb:35 ccm fir
a=rtcp-fb:35 nack
a=rtcp-fb:35 nack pli
a=fmtp:35 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:36 rtx/90000
a=fmtp:36 apt=35
a=rtpmap:41 AV1/90000
a=rtcp-fb:41 goog-remb
a=rtcp-fb:41 transport-cc
a=rtcp-fb:41 ccm fir
a=rtcp-fb:41 nack
a=rtcp-fb:41 nack pli
a=rtpmap:42 rtx/90000
a=fmtp:42 apt=41
a=rtpmap:114 H264/90000
a=rtcp-fb:114 goog-remb
a=rtcp-fb:114 transport-cc
a=rtcp-fb:114 ccm fir
a=rtcp-fb:114 nack
a=rtcp-fb:114 nack pli
a=fmtp:114 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:115 rtx/90000
a=fmtp:115 apt=114
a=rtpmap:116 red/90000
a=rtpmap:117 rtx/90000
a=fmtp:117 apt=116
a=rtpmap:118 ulpfec/90000
a=ssrc-group:FID 1424577281 37897798
a=ssrc:1424577281 cname:cH8zNiIYc6Or008w
a=ssrc:1424577281 msid:63145f8e-b1f8-4e6c-9808-442d57cdb0ba 3178d599-ab51-4ea8-ada0-c368c08537d6
a=ssrc:37897798 cname:cH8zNiIYc6Or008w
a=ssrc:37897798 msid:63145f8e-b1f8-4e6c-9808-442d57cdb0ba 3178d599-ab51-4ea8-ada0-c368c08537d6
```

answer
```server
v=0
o=thinkive 10000 1 IN IP4 0.0.0.0
s=-
t=0 0
a=ice-lite
a=fingerprint:sha-256 84:4A:48:7C:1E:63:79:3C:8F:6C:C3:61:4A:9A:85:DE:B5:42:68:26:5C:D7:41:D9:60:AC:37:9C:84:8D:11:05
a=msid-semantic: WMS *
a=group:BUNDLE 0 1
m=audio 7 UDP/TLS/RTP/SAVPF 111
c=IN IP4 127.0.0.1
a=rtpmap:111 opus/48000/2
a=fmtp:111 stereo=1;usedtx=1
a=extmap:1 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:10 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=setup:active
a=mid:0
a=recvonly
a=ice-ufrag:poentjlg92rieuxn
a=ice-pwd:2pzo2cydejs3nrawnu8pjp3i3c10ko3x
a=candidate:udpcandidate 1 udp 1076302079 192.168.200.135 43523 typ host
a=end-of-candidates
a=ice-options:renomination
a=rtcp-mux
a=rtcp-rsize
m=video 7 UDP/TLS/RTP/SAVPF 108 109
c=IN IP4 127.0.0.1
a=rtpmap:108 H264/90000
a=rtpmap:109 rtx/90000
a=fmtp:108 packetization-mode=1;level-asymmetry-allowed=1;profile-level-id=42e01f;x-google-start-bitrate=1000
a=fmtp:109 apt=108
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=extmap:1 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:6 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07
a=extmap:11 urn:3gpp:video-orientation
a=extmap:12 urn:ietf:params:rtp-hdrext:toffset
a=setup:active
a=mid:1
a=recvonly
a=ice-ufrag:poentjlg92rieuxn
a=ice-pwd:2pzo2cydejs3nrawnu8pjp3i3c10ko3x
a=candidate:udpcandidate 1 udp 1076302079 192.168.200.135 43523 typ host
a=end-of-candidates
a=ice-options:renomination
a=rtcp-mux
a=rtcp-rsize
```

Reply all
Reply to author
Forward
0 new messages