Skip to content

feat: add TCP transport support for RTSP client and server#305

Merged
a-wing merged 4 commits intobinbat:mainfrom
Marsyew:main
May 22, 2025
Merged

feat: add TCP transport support for RTSP client and server#305
a-wing merged 4 commits intobinbat:mainfrom
Marsyew:main

Conversation

@Marsyew
Copy link
Copy Markdown
Contributor

@Marsyew Marsyew commented May 19, 2025

  • Support TCP interleaved RTP/RTCP in RTSP client and server
  • Add RtspTcpHandler for TCP session management
  • Enhance RtspTcpHandler to manage TCP-based RTSP sessions
  • Update WebRTC integration for TCP in whip.rs and whep.rs

add ?transport=tcp to input/output parameter to enable rtsp rtp_over_tcp mode
for example:
cargo run --bin=whipinto -- -w http://localhost:7777/whip/test-rtsp -i rtsp://localhost:8554/mystream?transport=tcp
cargo run --bin=whepfrom -- -w http://localhost:7777/whep/test-rtsp -o rtsp://127.0.0.1:8554/test?transport=tcp

- Support TCP interleaved RTP/RTCP in RTSP client and server
- Add RtspTcpHandler for TCP session management
- Enhance RtspTcpHandler to manage TCP-based RTSP sessions
- Update WebRTC integration for TCP in whip.rs and whep.rs
@codecov
Copy link
Copy Markdown

codecov bot commented May 19, 2025

Codecov Report

Attention: Patch coverage is 81.75241% with 227 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
livetwo/src/rtspclient.rs 79.74% 94 Missing ⚠️
livetwo/src/whep.rs 72.60% 63 Missing ⚠️
livetwo/src/whip.rs 80.85% 45 Missing ⚠️
libs/rtsp/src/lib.rs 94.48% 16 Missing ⚠️
livetwo/src/utils.rs 64.00% 9 Missing ⚠️
Files with missing lines Coverage Δ
livetwo/src/utils.rs 87.50% <64.00%> (+1.15%) ⬆️
libs/rtsp/src/lib.rs 92.35% <94.48%> (+0.04%) ⬆️
livetwo/src/whip.rs 88.48% <80.85%> (-3.20%) ⬇️
livetwo/src/whep.rs 85.66% <72.60%> (-7.57%) ⬇️
livetwo/src/rtspclient.rs 83.79% <79.74%> (-3.39%) ⬇️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@a-wing a-wing merged commit 53539c5 into binbat:main May 22, 2025
17 of 18 checks passed
@a-wing a-wing added enhancement New feature or request mod::whipinto whipinto mod::whepfrom whepfrom labels May 22, 2025
@a-wing a-wing added this to the 0.8.0 milestone May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request mod::whepfrom whepfrom mod::whipinto whipinto

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants