moq-srt: size the export delay from the negotiated TSBPD latency

Đang mở
#10,342 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
audio-video-rtc, backend

Hướng nghiên cứu

Read Play::accept, Client::publish, and the ts::Options::latency setup; check how the connection exposes negotiated send latency after the SRT fork change lands. Add an end-to-end test where the caller requests higher latency than the server, and verify the export delay follows the negotiated value while keeping the one-second floor. The issue is blocked on PR #10185, so confirm that dependency has landed before starting.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

quest

Problem

A Play and a dial-out Client::publish set the MPEG-TS export delay from the locally configured Config::latency, not from the TSBPD latency the handshake settled on. A caller that asks for a longer receive latency than the server's gets a delay shorter than the buffer it actually runs.

Found on https://github.com/moq-dev/moq/pull/10185 (the SRT fork). Its driver exposes the negotiated latencies on the connection and logs them on accept, but egress still reads the configured value, as it did when srt-tokio hid them. TSBPD negotiates each direction to the larger of the two sides' requests, so the delay only grows, and only for a peer that asked for more.

Plan

  • Pass the connection's negotiated send latency into ts::Options::latency in Play::accept and Client::publish, keeping the one-second floor. Drop Pending::latency and Client::latency if nothing else reads them.
  • Test it end to end: a caller requests a longer latency than the server, and the export's delay follows the caller.

Behaviour: a play's delay grows for a peer that negotiates a longer latency. Public API: none. Wire: none.

Blocked on https://github.com/moq-dev/moq/pull/10185 landing.

(Written by Claude Opus 5.5)

Ngôn ngữ chính
Rust
Star
1.6k
Fork
251
Merge trung bình
10 giờ 10 phút
Pull request đã merge (30 ngày)
822

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của moq-dev/moq

Tất cả issue của moq-dev/moq

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.