Skip to content

Commit abacd68

Browse files
committed
WebRTC: Use realtime for TWCC timestamp accuracy. v7.0.114
1 parent 8acceb1 commit abacd68

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

trunk/doc/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The changelog for SRS.
77
<a name="v7-changes"></a>
88

99
## SRS 7.0 Changelog
10+
* v7.0, 2025-10-30, WebRTC: Use realtime for TWCC timestamp accuracy. v7.0.114
1011
* v7.0, 2025-10-30, AI: HLS: Fix crash when segment is not open by adding NULL checks. v7.0.113 (#3431)
1112
* v7.0, 2025-10-29, AI: AAC: Fix mono audio reported as stereo in HTTP API. v7.0.112 (#3556)
1213
* v7.0, 2025-10-27, HLS/DASH: Skip unpublish if disabled; add protection in SrsPath::unlink. v7.0.111

trunk/src/app/srs_app_rtc_conn.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,10 @@ srs_error_t SrsRtcPublishStream::on_twcc(uint16_t sn)
15321532
{
15331533
srs_error_t err = srs_success;
15341534

1535-
srs_utime_t now = srs_time_now_cached();
1535+
// To get more accurate timestamp, and avoid deviation caused by coroutine scheduler,
1536+
// we use realtime for TWCC.
1537+
srs_utime_t now = srs_time_now_realtime();
1538+
15361539
err = rtcp_twcc_->recv_packet(sn, now);
15371540

15381541
return err;
@@ -1584,10 +1587,6 @@ srs_error_t SrsRtcPublishStream::on_rtp_plaintext(char *plaintext, int nb_plaint
15841587
{
15851588
srs_error_t err = srs_success;
15861589

1587-
if (_srs_blackhole->blackhole_) {
1588-
_srs_blackhole->sendto(plaintext, nb_plaintext);
1589-
}
1590-
15911590
// Allocate packet form cache.
15921591
SrsRtpPacket *pkt = new SrsRtpPacket();
15931592

trunk/src/core/srs_core_version7.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
#define VERSION_MAJOR 7
1111
#define VERSION_MINOR 0
12-
#define VERSION_REVISION 113
12+
#define VERSION_REVISION 114
1313

1414
#endif

0 commit comments

Comments
 (0)