Skip to content
New issue

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

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

Already on GitHub? # to your account

WebRTC: WebRTC over TCP directly, not TURN, TCP transmission (non-TURN) #2852

Closed
Tracked by #2843
winlinvip opened this issue Jan 6, 2022 · 1 comment · Fixed by #3166
Closed
Tracked by #2843

WebRTC: WebRTC over TCP directly, not TURN, TCP transmission (non-TURN) #2852

winlinvip opened this issue Jan 6, 2022 · 1 comment · Fixed by #3166
Assignees
Labels
Enhancement Improvement or enhancement. Feature It's a new feature. Kubernetes For K8s, Prometheus, APM and Grafana. TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Milestone

Comments

@winlinvip
Copy link
Member

winlinvip commented Jan 6, 2022

RFC

Usage

Please see doc or 中文文档.

Example

Thank you @xialixin. H5 also supports direct TCP connection. SDP Offer: offer.txt, SDP Answer: answer.txt

Here is the additional SDP for UDP: udp-answer.txt udp-offer.txt. The difference lies in the Answer.

a=candidate:0 1 udp 2130706431 192.168.3.82 8000 typ host generation 0
a=candidate:2 1 TCP 2124414975 10.0.1.1 8998 typ host tcptype passive
a=candidate:tcpcandidate 1 tcp 1076302079 39.100.155.146 40390 typ host tcptype passive

ICE screenshot:

image

Wireshark: Filter by tcp.stream eq 7 webrtc-tcp.pcapng.zip

The whole capture by ip host 39.100.155.146

TRANS_BY_GPT3

@winlinvip winlinvip added this to the 5.0 milestone Jan 6, 2022
@winlinvip winlinvip added Enhancement Improvement or enhancement. Feature It's a new feature. WebRTC WebRTC, RTC2RTMP or RTMP2RTC. labels Jan 6, 2022
@xianchuhan
Copy link

xianchuhan commented Jan 9, 2022

This is essentially ice supporting TCP, which Janus also supports. I encountered this at my previous company, where some clients had strict restrictions on UDP in their networks and only allowed TCP by default.

TRANS_BY_GPT3

@winlinvip winlinvip added the Kubernetes For K8s, Prometheus, APM and Grafana. label Sep 2, 2022
@winlinvip winlinvip changed the title WebRTC: 支持TCP直连的方式,非TURN而是TCP直连 WebRTC: WebRTC over TCP directly, not TURN, 支持TCP直连的方式,非TURN而是TCP直连 Sep 2, 2022
@winlinvip winlinvip changed the title WebRTC: WebRTC over TCP directly, not TURN, 支持TCP直连的方式,非TURN而是TCP直连 WebRTC: WebRTC over TCP directly, not TURN, 支持TCP直连的方式(非TURN) Sep 2, 2022
@winlinvip winlinvip changed the title WebRTC: WebRTC over TCP directly, not TURN, 支持TCP直连的方式(非TURN) WebRTC: WebRTC over TCP directly, not TURN, TCP直连传输(非TURN) Sep 2, 2022
@winlinvip winlinvip changed the title WebRTC: WebRTC over TCP directly, not TURN, TCP直连传输(非TURN) WebRTC: WebRTC over TCP directly, not TURN, TCP传输(非TURN) Sep 2, 2022
@ossrs ossrs deleted a comment from xianchuhan Sep 2, 2022
@winlinvip winlinvip linked a pull request Sep 4, 2022 that will close this issue
5 tasks
@winlinvip winlinvip changed the title WebRTC: WebRTC over TCP directly, not TURN, TCP传输(非TURN) WebRTC: WebRTC over TCP directly, not TURN, TCP transmission (non-TURN) Jul 29, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Enhancement Improvement or enhancement. Feature It's a new feature. Kubernetes For K8s, Prometheus, APM and Grafana. TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants