Closed timzaak closed 11 months ago
是否两者 都应该创建 offer 请求, 但这样, 他们怎么进行 offer/answer 应答?
解决了,如果是用 gathering_complete_promise 这种方式进行 ICE candidate 获取和配对, Offer 的 peerConnection 要先调用 gathering_complete_promise, 再轮到 Answer 端 调用 gathering_complete_promise, 之后两者才能通信。
但过一段时间后, webrtc 会报错(连接不会受影响):
ERROR turn::client::relay_conn: fail to refresh permissions: CreatePermission error response (error 403: Forbidden)
2023-10-22T14:00:00.299052Z WARN turn::client::relay_conn: refresh permissions failed
用 https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ 测试: 配置: turn:113.31.103.71:13478 user pass
会报错: The server stun:113.31.103.71:13478 returned an error with code=701: STUN server address is incompatible.
我这边本地测试没出现问题
There is an simple example of webrtc-rs using turn-rs, but it does not work.
两者无法链接,能否帮忙看下问题在哪里? (已解决)
webrtc code: https://github.com/ForNetCode/fornet/blob/relay/relay/src/main.rs turn_server.yaml: https://github.com/ForNetCode/fornet/blob/relay/relay/tun_server_config.toml
webrtc log:
turn-rs log: