2017-11-07 7 views
0

C에서 webrtc의 피어를 만들고 싶었지만 연결이 어떻게 이루어 졌는지 아직 알 수 없습니다. 내 컴퓨터에서 https://webrtc.github.io/samples/src/content/peerconnection/munge-sdp/ 샘플을 사용하여 SDP 파일을 생성하고 IP4 필드를 변경하여 루프백 만 수행하지 않고 다른 컴퓨터에서 동일한 작업을 수행합니다. [기본적으로 루프백을 수행하지 않습니다.] [기본적으로 내가 직접 신호를 보내 겠어].munge SDP 샘플을 사용하여 다른 PC에 연결할 수 있습니까?

로컬 네트워크를 통해 시도했지만 비참하게 기다렸습니다. 여기

` 
v=0 
o=mozilla...THIS_IS_SDPARTA-52.4.0 7301737099351893139 0 IN IP4 0.0.0.0 
s=- 
t=0 0 
a=fingerprint:sha-256 29:C1:12:C2:D7:03:B6:A8:E1:28:DC:DC:DE:A5:A0:0E:A8:D4:3A:CF:D5:67:9A:6B:4A:38:8C:DE:9C:ED:4E:D8 
a=group:BUNDLE sdparta_0 sdparta_1 sdparta_2 
a=ice-options:trickle 
a=msid-semantic:WMS * 
m=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8 101 
c=IN IP4 0.0.0.0 
a=sendrecv 
a=extmap:1/sendonly urn:ietf:params:rtp-hdrext:ssrc-audio-level 
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1 
a=fmtp:101 0-15 
a=ice-pwd:f0fa540801b8b01d2616d465cdbaf888 
a=ice-ufrag:23f84f96 
a=mid:sdparta_0 
a=msid:{518019eb-2799-4525-ac2f-486dc4eb8ef4} {ebd29374-a915-41f1-868f-a5bca57540c1} 
a=rtcp-mux 
a=rtpmap:109 opus/48000/2 
a=rtpmap:9 G722/8000/1 
a=rtpmap:0 PCMU/8000 
a=rtpmap:8 PCMA/8000 
a=rtpmap:101 telephone-event/8000/1 
a=setup:actpass 
a=ssrc:3747370289 cname:{5339d74a-cea8-4286-9a6f-5c6682f03b4a} 
m=video 9 UDP/TLS/RTP/SAVPF 120 121 
c=IN IP4 0.0.0.0 
a=sendrecv 
a=fmtp:120 max-fs=12288;max-fr=60 
a=fmtp:121 max-fs=12288;max-fr=60 
a=ice-pwd:f0fa540801b8b01d2616d465cdbaf888 
a=ice-ufrag:23f84f96 
a=mid:sdparta_1 
a=msid:{518019eb-2799-4525-ac2f-486dc4eb8ef4} {38ff8810-1ae3-4786-b95c-e945f649f032} 
a=rtcp-fb:120 nack 
a=rtcp-fb:120 nack pli 
a=rtcp-fb:120 ccm fir 
a=rtcp-fb:120 goog-remb 
a=rtcp-fb:121 nack 
a=rtcp-fb:121 nack pli 
a=rtcp-fb:121 ccm fir 
a=rtcp-fb:121 goog-remb 
a=rtcp-mux 
a=rtpmap:120 VP8/90000 
a=rtpmap:121 VP9/90000 
a=setup:actpass 
a=ssrc:8090718 cname:{5339d74a-cea8-4286-9a6f-5c6682f03b4a} 
m=application 9 DTLS/SCTP 5000 
c=IN IP4 0.0.0.0 
a=sendrecv 
a=ice-pwd:f0fa540801b8b01d2616d465cdbaf888 
a=ice-ufrag:23f84f96 
a=mid:sdparta_2 
a=sctpmap:5000 webrtc-datachannel 256 
a=setup:actpass 
a=ssrc:3024981980 cname:{5339d74a-cea8-4286-9a6f-5c6682f03b4a} 

`

OBS SDP를 파일 중 하나입니다 : 내가 목적 obs2에 0.0.0.0로 IP4 왼쪽 : 나는 ICE 후보를 놓친하지만 확실하지

모든 도움을 주셔서 감사합니다.

답변

1

아니요. 다른 PC에 연결하려면 신호 서버가 필요하며 ice ufrag/pwd와 dtls 지문 같은 것들을 교환하십시오. 좀 봐봐 https://appr.tc/

+0

내가 SDP 파일을 볼 수있는 다른 어떤 알고 있습니까? –

+0

시그널링을 수동으로하면 시그널링 서버가 부족합니다. –

관련 문제