Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用webrtc无法进行对讲 #3544

Closed
TufeiShao opened this issue May 16, 2024 · 3 comments
Closed

使用webrtc无法进行对讲 #3544

TufeiShao opened this issue May 16, 2024 · 3 comments

Comments

@TufeiShao
Copy link

咨询的功能模块

  • webrtc

咨询的具体内容和问题

  • 使用zlmediakit自带的webrtc页面进行测试。在局域网搭建环境,一台pc(A)浏览器push https://10.10.1.17:9443/index/api/webrtc?app=live&stream=test&type=push ,另外一台(B)play https://10.10.1.17:9443/index/api/webrtc?app=live&stream=test&type=play
    此时B可以听到声音,这是B也push https://10.10.1.17:9443/index/api/webrtc?app=live&stream=test1&type=push B原来播放的test就没有声音了。
    MediaServer输出日志:
    2024-05-16 16:04:53.126 W [MediaServer] [1891321-event poller 22] DtlsTransport.cpp:1390 OnSslInfo | received DTLS warning alert: close notify
    2024-05-16 16:04:53.126 D [MediaServer] [1891321-event poller 22] DtlsTransport.cpp:934 CheckStatus | disconnected
    2024-05-16 16:04:53.126 W [MediaServer] [1891321-event poller 22] DtlsTransport.cpp:841 Reset | resetting DTLS transport
    2024-05-16 16:04:53.126 D [MediaServer] [1891321-event poller 22] DtlsTransport.cpp:1394 OnSslInfo | sending DTLS warning alert: close notify
    2024-05-16 16:04:53.126 I [MediaServer] [1891321-event poller 22] WebRtcTransport.cpp:240 OnDtlsTransportClosed | qf5feB9AH0A=_2
    2024-05-16 16:04:53.126 W [MediaServer] [1891321-event poller 22] WebRtcTransport.cpp:1204 onShutdown | 6(dtls close notify received)
    2024-05-16 16:04:53.126 W [MediaServer] [1891321-event poller 22] WebRtcSession.cpp:106 onError | 8-203(10.10.1.36:60434) 6(dtls close notify received)
    2024-05-16 16:04:53.126 I [MediaServer] [1891321-event poller 22] WebRtcTransport.cpp:1212 removeTuple | qf5feB9AH0A=_2 remove tuple 10.10.1.36:60434
    2024-05-16 16:04:53.126 I [MediaServer] [1891321-event poller 22] WebRtcTransport.cpp:188 OnIceServerDisconnected | qf5feB9AH0A=_2
    2024-05-16 16:04:53.126 I [MediaServer] [1891321-event poller 22] WebRtcTransport.cpp:538 ~WebRtcTransportImp | qf5feB9AH0A=_2

请问是不是我哪里使用不当造成这样的?如何正确使用webrtc进行对讲?

@xiongguangjie
Copy link
Member

你这个是单向的,双向对接需要2个单向组合

@TufeiShao
Copy link
Author

A推了test到流媒体服务器,B播放了A的test,然后B在推test1到流媒体时,流媒体就报错了,B播放的test就停了

@xiongguangjie
Copy link
Member

A推了test到流媒体服务器,B播放了A的test,然后B在推test1到流媒体时,流媒体就报错了,B播放的test就停了

需要4个自带demo测试

@xia-chu xia-chu closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants