Mihawk086 / easy_webrtc_server

基于muduo的简单的webrtc流媒体服务器
282 stars 111 forks source link

运行程序无法播放视频 #2

Open h-acker opened 2 years ago

h-acker commented 2 years ago

程序成功运行,打印SDP 信息但是web 浏览器无法播放视频

server SDP: 1.265: Offer from server v=0 o=- 1495799811084970 1495799811084970 IN IP4 192.168.31.138 s=Streaming Test t=0 0 a=group:BUNDLE 0 a=msid-semantic: WMS janus m=video 1 RTP/SAVPF 96 c=IN IP4 192.168.31.138 a=mid:0 a=sendonly a=rtcp-mux a=ice-ufrag:658y a=ice-pwd:3dvpo92vmma9vmpn46w6lero a=ice-options:trickle a=fingerprint:sha-256 1F:3E:69:A5:11:62:20:10:49:F1:8B:56:69:FF:90:77:8F:C1:B7:4C:7B:08:FA:85:96:B9:D6:61:DA:A1:63:65 a=setup:actpass a=connection:new a=rtpmap:96 H264/90000 a=ssrc:12345678 cname:janusvideo a=ssrc:12345678 msid:janus janusv0 a=ssrc:12345678 mslabel:janus a=ssrc:12345678 label:janusv0 a=candidate:4 1 udp 12345678 192.168.31.138 46061 typ host

web SDP: 1.267: Pranswer from pc2 v=0 o=- 3083812893859271099 2 IN IP4 127.0.0.1 s=- t=0 0 a=group:BUNDLE 0 a=msid-semantic: WMS m=video 9 RTP/SAVPF 96 c=IN IP4 0.0.0.0 a=rtcp:9 IN IP4 0.0.0.0 a=ice-ufrag:DrVq a=ice-pwd:ij2sEx73EagRvlW2EDApZjtX a=ice-options:trickle a=fingerprint:sha-256 5E:95:A4:3E:24:25:7D:2F:53:3D:E4:AF:AB:61:7B:8A:68:C4:EC:4F:4C:A9:2D:A1:88:E6:AF:36:5E:8A:19:37 a=setup:active a=mid:0 a=recvonly a=rtcp-mux a=rtpmap:96 H264/90000 a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f common.js:8 1.268: localDescription success.

LeewayTang commented 2 years ago

相同情况 显示bind udp error

20220812 05:58:15.703229Z 16342 WARN HttpServer[webrtc] starts listening on 0.0.0.0:8000 - HttpServer.cc:53 20220812 05:58:21.813368Z 16342 INFO TcpServer::newConnection [webrtc] - new connection [webrtc-0.0.0.0:8000#1] from 219.239.227.160:55398 - TcpServer.cc:80 bind udp error v=0