WebRTC: Use realtime for TWCC timestamp accuracy. v7.0.114

This commit is contained in:
winlin 2025-10-30 19:29:03 -04:00
parent 8acceb1b1b
commit abacd680ba
3 changed files with 6 additions and 6 deletions

View File

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

View File

@ -1532,7 +1532,10 @@ srs_error_t SrsRtcPublishStream::on_twcc(uint16_t sn)
{
srs_error_t err = srs_success;
srs_utime_t now = srs_time_now_cached();
// To get more accurate timestamp, and avoid deviation caused by coroutine scheduler,
// we use realtime for TWCC.
srs_utime_t now = srs_time_now_realtime();
err = rtcp_twcc_->recv_packet(sn, now);
return err;
@ -1584,10 +1587,6 @@ srs_error_t SrsRtcPublishStream::on_rtp_plaintext(char *plaintext, int nb_plaint
{
srs_error_t err = srs_success;
if (_srs_blackhole->blackhole_) {
_srs_blackhole->sendto(plaintext, nb_plaintext);
}
// Allocate packet form cache.
SrsRtpPacket *pkt = new SrsRtpPacket();

View File

@ -9,6 +9,6 @@
#define VERSION_MAJOR 7
#define VERSION_MINOR 0
#define VERSION_REVISION 113
#define VERSION_REVISION 114
#endif